Package com.inrupt.client.accessgrant
Class AccessGrant
java.lang.Object
com.inrupt.client.accessgrant.AccessCredential
com.inrupt.client.accessgrant.AccessGrant
An Access Grant abstraction, for use when interacting with Solid resources.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inrupt.client.accessgrant.AccessCredential
AccessCredential.CredentialData, AccessCredential.CredentialMetadata
-
Field Summary
Fields inherited from class com.inrupt.client.accessgrant.AccessCredential
REVOCATION_LIST_2020_STATUS, TYPE
-
Constructor Summary
ModifierConstructorDescriptionprotected
AccessGrant
(URI identifier, String credential, AccessCredential.CredentialData data, AccessCredential.CredentialMetadata metadata) Read a verifiable presentation as an AccessGrant. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessGrant
of
(InputStream serialization) Create an AccessGrant object from a serialized form.static AccessGrant
Create an AccessGrant object from a serialized form.Methods inherited from class com.inrupt.client.accessgrant.AccessCredential
getCreator, getExpiration, getIdentifier, getIssuedAt, getIssuer, getModes, getPurposes, getRecipient, getResources, getStatus, getTypes, serialize
-
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 identifiercredential
- the serialized form of an Access Grantdata
- the user-managed data associated with the credentialmetadata
- the server-managed data associated with the credential
-
-
Method Details
-
of
Create an AccessGrant object from a serialized form.- Parameters:
serialization
- the serialized access grant- Returns:
- a parsed access grant
-
of
Create an AccessGrant object from a serialized form.- Parameters:
serialization
- the serialized access grant- Returns:
- a parsed access grant
-