KeyUsage class

The key usage extension defines the purpose (e.g., encipherment, signature, certificate signing) of the key contained in the certificate.

Inheritance

Constructors

KeyUsage({bool digitalSignature, bool nonRepudiation, bool keyEncipherment, bool dataEncipherment, bool keyAgreement, bool keyCertSign, bool cRLSign, bool encipherOnly, bool decipherOnly})
const
KeyUsage.fromAsn1(ASN1BitString bitString)
Creates a key usage extension from an ASN1BitString. [...]
factory

Properties

cRLSign bool
True when the subject public key is used for verifying signatures on certificate revocation lists (e.g., CRLs, delta CRLs, or ARLs).
final
dataEncipherment bool
True when the subject public key is used for directly enciphering raw user data without the use of an intermediate symmetric cipher. [...]
final
decipherOnly bool
When true (and the keyAgreement bit is also set), the subject public key may be used only for deciphering data while performing key agreement.
final
digitalSignature bool
True when the subject public key is used for verifying digital signatures, other than signatures on certificates and CRLs, such as those used in an entity authentication service, a data origin authentication service, and/or an integrity service.
final
encipherOnly bool
When true (and the keyAgreement bit is also set), the subject public key may be used only for enciphering data while performing key agreement.
final
keyAgreement bool
True when the subject public key is used for key agreement. [...]
final
keyCertSign bool
True when the subject public key is used for verifying signatures on public key certificates. [...]
final
keyEncipherment bool
True when the subject public key is used for enciphering private or secret keys, i.e., for key transport. [...]
final
nonRepudiation bool
True when the subject public key is used to verify digital signatures, other than signatures on certificates and CRLs, used to provide a non-repudiation service that protects against the signing entity falsely denying some action. In the case of later conflict, a reliable third party may determine the authenticity of the signed data. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited