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 TypeMethodDescriptiongetModes()
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
-
-
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
-