Package com.inrupt.client.accessgrant
Class AccessCredential.CredentialData
- java.lang.Object
-
- com.inrupt.client.accessgrant.AccessCredential.CredentialData
-
- Enclosing class:
- AccessCredential
public static class AccessCredential.CredentialData extends Object
User-managed credential data.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getModes()
Get the access modes associated with the credential.Set<URI>
getPurposes()
Get the purposes associated with the credential.URI
getRecipient()
Get the recipient associated with this credential.Set<URI>
getResources()
Get the resource URIs associated with this credential.
-
-
-
Constructor Detail
-
CredentialData
public CredentialData(Set<URI> resources, Set<String> modes, Set<URI> purposes, URI recipient)
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 Detail
-
getPurposes
public Set<URI> getPurposes()
Get the purposes associated with the credential.- Returns:
- the purpose definitions
-
getModes
public Set<String> getModes()
Get the access modes associated with the credential.- Returns:
- the access modes
-
getResources
public Set<URI> getResources()
Get the resource URIs associated with this credential.- Returns:
- the resource URIs
-
getRecipient
public URI getRecipient()
Get the recipient associated with this credential.- Returns:
- the credential, may be
null
-
-