Package com.nimbusds.oauth2.sdk.rar
Class AuthorizationDetail.Builder
java.lang.Object
com.nimbusds.oauth2.sdk.rar.AuthorizationDetail.Builder
- Enclosing class:
- AuthorizationDetail
Builder for constructing authorisation details.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the actions.build()
Builds a new authorisation detail.Sets the data types.Sets the specified authorisation detail field.identifier
(Identifier identifier) Sets the identifier.Sets the locations.privileges
(List<Privilege> privileges) Sets the privileges.
-
Constructor Details
-
Builder
Creates a new authorisation detail builder.- Parameters:
type
- The authorisation type. Must not benull
.
-
-
Method Details
-
locations
Sets the locations.- Parameters:
locations
- The locations,null
if not specified.- Returns:
- This builder.
-
actions
Sets the actions.- Parameters:
actions
- The actions,null
if not specified.- Returns:
- This builder.
-
dataTypes
Sets the data types.- Parameters:
dataTypes
- The data types,null
if not specified.- Returns:
- This builder.
-
identifier
Sets the identifier.- Parameters:
identifier
- The identifier,null
if not specified.- Returns:
- This builder.
-
privileges
Sets the privileges.- Parameters:
privileges
- The privileges,null
if not specified.- Returns:
- This builder.
-
field
Sets the specified authorisation detail field.- Parameters:
name
- The field name. Must not benull
.value
- The field value,null
if not specified.- Returns:
- This builder.
-
build
Builds a new authorisation detail.- Returns:
- The authorisation detail.
-