PemLabel enum

Labels for PEM encoded strings.

Example, a PEM encoded string using PemLabel.publicKey will look as follows.

-----BEGIN PUBLIC KEY-----
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEn1LlwLN/KBYQRVH6HfIMTzfEqJOVztLe
kLchp2hi78cCaMY81FBlYs8J9l7krc+M4aBeCGYFjba+hiXttJWPL7ydlE+5UG4U
Nkn3Eos8EiZByi9DVsyfy9eejh+8AXgp
-----END PUBLIC KEY-----

The PemCodec requires a PemLabel to ensure that bytes decoded matches the intended use-case.

See section 4 RFC 7468.

Inheritance

Constructors

PemLabel()
const

Values

certificate → const PemLabel

Public-key certificate ('CERTIFICATE').

See section 5 RFC 7468.

certificateRevocationList → const PemLabel

Certificate Revocation List ('X509 CRL').

See section 6 RFC 7468.

certificateRequest → const PemLabel

PKCS #10 Certification Request ('CERTIFICATE REQUEST').

See section 7 RFC 7468.

pkcs7 → const PemLabel

PKCS #7 Cryptographic Message Syntax structure ('PKCS7').

See section 8 RFC 7468.

cms → const PemLabel

Cryptographic Message Syntax structure ('CMS').

See section 9 RFC 7468.

privateKey → const PemLabel

Unencrypted PKCS #8 Private Key Information Syntax structure ('PRIVATE KEY').

See section 10 RFC 7468.

encryptedPrivateKey → const PemLabel

Encrypted PKCS #8 Private Key Information Syntax structure ('ENCRYPTED PRIVATE KEY').

See section 11 RFC 7468.

attributeCertificate → const PemLabel

Attribute certificate ('ATTRIBUTE CERTIFICATE').

See section 12 RFC 7468.

publicKey → const PemLabel

Subject Public Key Info ('PUBLIC KEY').

See section 13 RFC 7468.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<PemLabel>
A constant List of the values in this enum, in order of their declaration.