Package com.inrupt.client.accessgrant
Class AccessCredential
java.lang.Object
com.inrupt.client.accessgrant.AccessCredential
- Direct Known Subclasses:
AccessDenial
,AccessGrant
,AccessRequest
A base class for access credentials.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
User-managed credential data.static class
Server-managed credential data. -
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AccessCredential
(URI identifier, String credential, AccessCredential.CredentialData data, AccessCredential.CredentialMetadata metadata) Create a base class for credential types. -
Method Summary
Modifier and TypeMethodDescriptionGet the creator of this access credential.Get the expiration time of the access credential.Get the identifier of the access credential.Get the issuance date for the credential.Get the issuer of the access credential.getModes()
Get the access modes of the access credential.Get the collection of purposes associated with the access credential.Get the recipient of this access credential.Get the resources associated with the access credential.Get the revocation status of the access credential.getTypes()
Get the types of the access credential.Serialize this access credential as a String.
-
Field Details
-
TYPE
- See Also:
-
REVOCATION_LIST_2020_STATUS
- See Also:
-
-
Constructor Details
-
AccessCredential
protected AccessCredential(URI identifier, String credential, AccessCredential.CredentialData data, AccessCredential.CredentialMetadata metadata) Create a base class for credential types.- Parameters:
identifier
- the credential identifiercredential
- the full credentialdata
- items pertaining to user-defined credential datametadata
- items pertaining to server-managed credential data
-
-
Method Details
-
getTypes
Get the types of the access credential.- Returns:
- the access credential types
-
getModes
Get the access modes of the access credential.- Returns:
- the access credential types
-
getStatus
Get the revocation status of the access credential.- Returns:
- the revocation status, if present
-
getExpiration
Get the expiration time of the access credential.- Returns:
- the expiration time
-
getIssuedAt
Get the issuance date for the credential.- Returns:
- the issuance date
-
getIssuer
Get the issuer of the access credential.- Returns:
- the issuer
-
getIdentifier
Get the identifier of the access credential.- Returns:
- the identifier
-
getPurposes
Get the collection of purposes associated with the access credential.- Returns:
- the purposes
- Implementation Note:
- as of Beta3, this method returns a set of URIs. Any non-URI purpose values encountered during access credential parsing will be discarded.
-
getResources
Get the resources associated with the access credential.- Returns:
- the associated resource identifiers
-
getCreator
Get the creator of this access credential.- Returns:
- the creator
-
getRecipient
Get the recipient of this access credential.- Returns:
- the recipient, if present
-
serialize
Serialize this access credential as a String.- Returns:
- a serialized form of the credential
-