Class AccessRequest

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

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

    • AccessRequest

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

    • of

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

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