Package com.inrupt.client.accessgrant
Class AccessCredential.CredentialMetadata
java.lang.Object
com.inrupt.client.accessgrant.AccessCredential.CredentialMetadata
- Enclosing class:
- AccessCredential
Server-managed credential data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the creator of the credential.Get the expiration time of the credential.Get the instant when the credential was issued.Get the issuer of the credential.Get the status of the credential.getTypes()
Get the types of the credential.
-
Constructor Details
-
CredentialMetadata
public CredentialMetadata(URI issuer, URI creator, Set<String> types, Instant issuedAt, Instant expiration, Status status) A collection of server-managed credential metadata.- Parameters:
issuer
- the issuercreator
- the agent who created the credentialtypes
- the credential typesissuedAt
- the credential issuance dateexpiration
- the credential expiration datestatus
- the credential status
-
-
Method Details
-
getIssuer
Get the issuer of the credential.- Returns:
- the issuer
-
getCreator
Get the creator of the credential.- Returns:
- the creator
-
getTypes
Get the types of the credential.- Returns:
- the credential types
-
getExpiration
Get the expiration time of the credential.- Returns:
- the expiration time
-
getStatus
Get the status of the credential.- Returns:
- the credential status
-
getIssuedAt
Get the instant when the credential was issued.- Returns:
- the time at which the access credentials was issued
-