Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data KeyUsage = KeyUsage' {}
- newKeyUsage :: KeyUsage
- keyUsage_dataEncipherment :: Lens' KeyUsage (Maybe Bool)
- keyUsage_encipherOnly :: Lens' KeyUsage (Maybe Bool)
- keyUsage_nonRepudiation :: Lens' KeyUsage (Maybe Bool)
- keyUsage_cRLSign :: Lens' KeyUsage (Maybe Bool)
- keyUsage_digitalSignature :: Lens' KeyUsage (Maybe Bool)
- keyUsage_keyCertSign :: Lens' KeyUsage (Maybe Bool)
- keyUsage_decipherOnly :: Lens' KeyUsage (Maybe Bool)
- keyUsage_keyEncipherment :: Lens' KeyUsage (Maybe Bool)
- keyUsage_keyAgreement :: Lens' KeyUsage (Maybe Bool)
Documentation
Defines one or more purposes for which the key contained in the certificate can be used. Default value for each option is false.
See: newKeyUsage
smart constructor.
KeyUsage' | |
|
Instances
newKeyUsage :: KeyUsage Source #
Create a value of KeyUsage
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:dataEncipherment:KeyUsage'
, keyUsage_dataEncipherment
- Key can be used to decipher data.
$sel:encipherOnly:KeyUsage'
, keyUsage_encipherOnly
- Key can be used only to encipher data.
$sel:nonRepudiation:KeyUsage'
, keyUsage_nonRepudiation
- Key can be used for non-repudiation.
$sel:cRLSign:KeyUsage'
, keyUsage_cRLSign
- Key can be used to sign CRLs.
$sel:digitalSignature:KeyUsage'
, keyUsage_digitalSignature
- Key can be used for digital signing.
$sel:keyCertSign:KeyUsage'
, keyUsage_keyCertSign
- Key can be used to sign certificates.
$sel:decipherOnly:KeyUsage'
, keyUsage_decipherOnly
- Key can be used only to decipher data.
$sel:keyEncipherment:KeyUsage'
, keyUsage_keyEncipherment
- Key can be used to encipher data.
$sel:keyAgreement:KeyUsage'
, keyUsage_keyAgreement
- Key can be used in a key-agreement protocol.