Interface PkiCredential.Metadata
- Enclosing interface:
PkiCredential
public static interface PkiCredential.Metadata
Metadata associated with a
PkiCredential
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Instant
The instant for when the key pair/credential "expires".default Instant
The instant for when the key pair/credential was issued.default String
getKeyId()
An assigned, or calculated, key identifier for the credential.Gets a live map of the additional metadata properties.
-
Field Details
-
KEY_ID_PROPERTY
Property name for the key identifier metadata property.- See Also:
-
ISSUED_AT_PROPERTY
Property name for the issued-at metadata property.- See Also:
-
EXPIRES_AT_PROPERTY
Property name for the expires-at metadata property.- See Also:
-
-
Method Details
-
getKeyId
An assigned, or calculated, key identifier for the credential.- Returns:
- the credential key identifier, or
null
, if not assigned/calculated
-
getIssuedAt
The instant for when the key pair/credential was issued.If not explicitly assigned, implementations may use the
notBefore
property from the credential entity certificate.- Returns:
- an instant for when the credential was issued/created, or
null
if this information is not available
-
getExpiresAt
The instant for when the key pair/credential "expires".If not explicitly assigned, implementations may use the
notAfter
property from the credential entity certificate.- Returns:
- an instant for when the credential expires, or
null
if this information is not available
-
getProperties
Gets a live map of the additional metadata properties.- Returns:
- a (possibly empty) map of additional metadata properties
-