Package com.inrupt.client.accessgrant
Class AccessCredential.CredentialData
java.lang.Object
com.inrupt.client.accessgrant.AccessCredential.CredentialData
- Enclosing class:
- AccessCredential
User-managed credential data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the access request identifier associated with this credential.getModes()
Get the access modes associated with the credential.Get the purposes associated with the credential.Get the recipient associated with this credential.Get the resource URIs associated with this credential.
-
Constructor Details
-
CredentialData
Create a collection of user-managed credential data.- Parameters:
resources
- the resources referenced by the credentialmodes
- the access modes defined by this credentialpurposes
- the purposes associated with this credentialrecipient
- the recipient for this credential, may benull
-
CredentialData
public CredentialData(Set<URI> resources, Set<String> modes, Set<URI> purposes, URI recipient, URI accessRequest) Create a collection of user-managed credential data.- Parameters:
resources
- the resources referenced by the credentialmodes
- the access modes defined by this credentialpurposes
- the purposes associated with this credentialrecipient
- the recipient for this credential, may benull
accessRequest
- the access request identifier, may benull
-
-
Method Details
-
getPurposes
Get the purposes associated with the credential.- Returns:
- the purpose definitions
-
getModes
Get the access modes associated with the credential.- Returns:
- the access modes
-
getResources
Get the resource URIs associated with this credential.- Returns:
- the resource URIs
-
getRecipient
Get the recipient associated with this credential.- Returns:
- the credential, may be
null
-
getAccessRequest
Get the access request identifier associated with this credential.- Returns:
- the access request identifier, may be
null
-