Package com.nimbusds.oauth2.sdk.rar
Class AuthorizationDetail.Builder
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.rar.AuthorizationDetail.Builder
-
- Enclosing class:
- AuthorizationDetail
public static class AuthorizationDetail.Builder extends Object
Builder for constructing authorisation details.
-
-
Constructor Summary
Constructors Constructor Description Builder(AuthorizationType type)Creates a new authorisation detail builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationDetail.Builderactions(List<Action> actions)Sets the actions.AuthorizationDetailbuild()Builds a new authorisation detail.AuthorizationDetail.BuilderdataTypes(List<DataType> dataTypes)Sets the data types.AuthorizationDetail.Builderfield(String name, Object value)Sets the specified authorisation detail field.AuthorizationDetail.Builderidentifier(Identifier identifier)Sets the identifier.AuthorizationDetail.Builderlocations(List<Location> locations)Sets the locations.AuthorizationDetail.Builderprivileges(List<Privilege> privileges)Sets the privileges.
-
-
-
Constructor Detail
-
Builder
public Builder(AuthorizationType type)
Creates a new authorisation detail builder.- Parameters:
type- The authorisation type. Must not benull.
-
-
Method Detail
-
locations
public AuthorizationDetail.Builder locations(List<Location> locations)
Sets the locations.- Parameters:
locations- The locations,nullif not specified.- Returns:
- This builder.
-
actions
public AuthorizationDetail.Builder actions(List<Action> actions)
Sets the actions.- Parameters:
actions- The actions,nullif not specified.- Returns:
- This builder.
-
dataTypes
public AuthorizationDetail.Builder dataTypes(List<DataType> dataTypes)
Sets the data types.- Parameters:
dataTypes- The data types,nullif not specified.- Returns:
- This builder.
-
identifier
public AuthorizationDetail.Builder identifier(Identifier identifier)
Sets the identifier.- Parameters:
identifier- The identifier,nullif not specified.- Returns:
- This builder.
-
privileges
public AuthorizationDetail.Builder privileges(List<Privilege> privileges)
Sets the privileges.- Parameters:
privileges- The privileges,nullif not specified.- Returns:
- This builder.
-
field
public AuthorizationDetail.Builder field(String name, Object value)
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
public AuthorizationDetail build()
Builds a new authorisation detail.- Returns:
- The authorisation detail.
-
-