Class AccessGrant

java.lang.Object
com.inrupt.client.accessgrant.AccessCredential
com.inrupt.client.accessgrant.AccessGrant

public class AccessGrant extends AccessCredential
An Access Grant abstraction, for use when interacting with Solid resources.
  • Constructor Details

    • AccessGrant

      protected AccessGrant(URI identifier, String credential, AccessCredential.CredentialData data, AccessCredential.CredentialMetadata metadata)
      Read a verifiable presentation as an AccessGrant.
      Parameters:
      identifier - the credential identifier
      credential - the serialized form of an Access Grant
      data - the user-managed data associated with the credential
      metadata - the server-managed data associated with the credential
  • Method Details

    • getAccessRequest

      public URI getAccessRequest()
      Get the corresponding access request identifier.
      Returns:
      the access request identifier, may be null
    • of

      public static AccessGrant of(String serialization)
      Create an AccessGrant object from a serialized form.
      Parameters:
      serialization - the serialized access grant
      Returns:
      a parsed access grant
    • of

      public static AccessGrant of(InputStream serialization)
      Create an AccessGrant object from a serialized form.
      Parameters:
      serialization - the serialized access grant
      Returns:
      a parsed access grant