Package com.inrupt.client.accessgrant
Class AccessRequest.RequestParameters.Builder
java.lang.Object
com.inrupt.client.accessgrant.AccessRequest.RequestParameters.Builder
- Enclosing class:
- AccessRequest.RequestParameters
A class for building access request parameters.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theAccessRequest.RequestParameters
object.expiration
(Instant expiration) Set a preferred expiration time for the access request operation.Set a preferred issuance time for the access request operation, likely at a time in the future.Set a single access mode for the access request operation.modes
(Collection<String> modes) Set multiple access modes for the access request operation.Set a single purpose for the access request operation.purposes
(Collection<URI> purposes) Set multiple purposes for the access request operation.Set a recipient for the access request operation.Set a single resource for the access request operation.resources
(Collection<URI> resources) Set multiple resources for the access request operation.
-
Method Details
-
recipient
Set a recipient for the access request operation.Note: this will typically be the identifier of resource owner
- Parameters:
recipient
- the recipient identifier, may benull
- Returns:
- this builder
-
resource
Set a single resource for the access request operation.- Parameters:
resource
- the resource identifier, notnull
- Returns:
- this builder
-
resources
Set multiple resources for the access request operation.Note: A null value will clear all existing resource values
- Parameters:
resources
- the resource identifiers, may benull
- Returns:
- this builder
-
mode
Set a single access mode for the access request operation.- Parameters:
mode
- the access mode, notnull
- Returns:
- this builder
-
modes
Set multiple access modes for the access request operation.Note: A null value will clear all existing mode values
- Parameters:
modes
- the access modes, may benull
- Returns:
- this builder
-
purpose
Set a single purpose for the access request operation.- Parameters:
purpose
- the purpose identifier, notnull
- Returns:
- this builder
-
purposes
Set multiple purposes for the access request operation.Note: A null value will clear all existing purpose values
- Parameters:
purposes
- the purpose identifiers, may benull
- Returns:
- this builder
-
expiration
Set a preferred expiration time for the access request operation.Note: an access grant server may select a different expiration value
- Parameters:
expiration
- the expiration time, may benull
.- Returns:
- this builder
-
issuedAt
Set a preferred issuance time for the access request operation, likely at a time in the future.Note: an access grant server may select a different issuance value
- Parameters:
issuedAt
- the issuance time, may benull
.- Returns:
- this builder
-
build
Build theAccessRequest.RequestParameters
object.- Returns:
- the access request parameters
-