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.Builder
actions(List<Action> actions)
Sets the actions.AuthorizationDetail
build()
Builds a new authorisation detail.AuthorizationDetail.Builder
dataTypes(List<DataType> dataTypes)
Sets the data types.AuthorizationDetail.Builder
field(String name, Object value)
Sets the specified authorisation detail field.AuthorizationDetail.Builder
identifier(Identifier identifier)
Sets the identifier.AuthorizationDetail.Builder
locations(List<Location> locations)
Sets the locations.AuthorizationDetail.Builder
privileges(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,null
if not specified.- Returns:
- This builder.
-
actions
public AuthorizationDetail.Builder actions(List<Action> actions)
Sets the actions.- Parameters:
actions
- The actions,null
if not specified.- Returns:
- This builder.
-
dataTypes
public AuthorizationDetail.Builder dataTypes(List<DataType> dataTypes)
Sets the data types.- Parameters:
dataTypes
- The data types,null
if not specified.- Returns:
- This builder.
-
identifier
public AuthorizationDetail.Builder identifier(Identifier identifier)
Sets the identifier.- Parameters:
identifier
- The identifier,null
if not specified.- Returns:
- This builder.
-
privileges
public AuthorizationDetail.Builder privileges(List<Privilege> privileges)
Sets the privileges.- Parameters:
privileges
- The privileges,null
if 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,null
if not specified.- Returns:
- This builder.
-
build
public AuthorizationDetail build()
Builds a new authorisation detail.- Returns:
- The authorisation detail.
-
-