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
Constructors -
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,nullif not specified.- Returns:
- This builder.
-
actions
Sets the actions.- Parameters:
actions- The actions,nullif not specified.- Returns:
- This builder.
-
dataTypes
Sets the data types.- Parameters:
dataTypes- The data types,nullif not specified.- Returns:
- This builder.
-
identifier
Sets the identifier.- Parameters:
identifier- The identifier,nullif not specified.- Returns:
- This builder.
-
privileges
Sets the privileges.- Parameters:
privileges- The privileges,nullif not specified.- Returns:
- This builder.
-
field
Sets the specified authorisation detail field.- Parameters:
name- The field name. Must not benull.value- The field value,nullif not specified.- Returns:
- This builder.
-
build
Builds a new authorisation detail.- Returns:
- The authorisation detail.
-