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.
  • 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 issuer
      creator - the agent who created the credential
      types - the credential types
      issuedAt - the credential issuance date
      expiration - the credential expiration date
      status - the credential status
  • Method Details

    • 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