Package com.inrupt.client.accessgrant
Class AccessCredential.CredentialMetadata
- java.lang.Object
-
- com.inrupt.client.accessgrant.AccessCredential.CredentialMetadata
-
- Enclosing class:
- AccessCredential
public static class AccessCredential.CredentialMetadata extends Object
Server-managed credential data.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getCreator()
Get the creator of the credential.Instant
getExpiration()
Get the expiration time of the credential.Instant
getIssuedAt()
Get the instant when the credential was issued.URI
getIssuer()
Get the issuer of the credential.Status
getStatus()
Get the status of the credential.Set<String>
getTypes()
Get the types of the credential.
-
-
-
Constructor Detail
-
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 Detail
-
getIssuer
public URI getIssuer()
Get the issuer of the credential.- Returns:
- the issuer
-
getCreator
public URI getCreator()
Get the creator of the credential.- Returns:
- the creator
-
getTypes
public Set<String> getTypes()
Get the types of the credential.- Returns:
- the credential types
-
getExpiration
public Instant getExpiration()
Get the expiration time of the credential.- Returns:
- the expiration time
-
getStatus
public Status getStatus()
Get the status of the credential.- Returns:
- the credential status
-
getIssuedAt
public Instant getIssuedAt()
Get the instant when the credential was issued.- Returns:
- the time at which the access credentials was issued
-
-