Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Certificate = Certificate' {}
- newCertificate :: Certificate
- certificate_body :: Lens' Certificate (Maybe ByteString)
- certificate_issuer :: Lens' Certificate (Maybe Text)
- certificate_notValidAfter :: Lens' Certificate (Maybe UTCTime)
- certificate_notValidBefore :: Lens' Certificate (Maybe UTCTime)
- certificate_subject :: Lens' Certificate (Maybe Text)
- certificate_thumbprint :: Lens' Certificate (Maybe Text)
Documentation
data Certificate Source #
The certificate.
See: newCertificate
smart constructor.
Certificate' | |
|
Instances
newCertificate :: Certificate Source #
Create a value of Certificate
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:body:Certificate'
, certificate_body
- The body of the certificate.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
$sel:issuer:Certificate'
, certificate_issuer
- The entity that issued the certificate.
$sel:notValidAfter:Certificate'
, certificate_notValidAfter
- The certificate is not valid after this date.
$sel:notValidBefore:Certificate'
, certificate_notValidBefore
- The certificate is not valid before this date.
$sel:subject:Certificate'
, certificate_subject
- The entity the certificate belongs to.
$sel:thumbprint:Certificate'
, certificate_thumbprint
- A hexadecimal identifier for the certificate.
certificate_body :: Lens' Certificate (Maybe ByteString) Source #
The body of the certificate.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
certificate_issuer :: Lens' Certificate (Maybe Text) Source #
The entity that issued the certificate.
certificate_notValidAfter :: Lens' Certificate (Maybe UTCTime) Source #
The certificate is not valid after this date.
certificate_notValidBefore :: Lens' Certificate (Maybe UTCTime) Source #
The certificate is not valid before this date.
certificate_subject :: Lens' Certificate (Maybe Text) Source #
The entity the certificate belongs to.
certificate_thumbprint :: Lens' Certificate (Maybe Text) Source #
A hexadecimal identifier for the certificate.