Class AuthorizationRequestOptions.Builder
java.lang.Object
com.revetsec.oauth.AuthorizationRequestOptions.Builder
- Enclosing class:
AuthorizationRequestOptions
@NotThreadSafe
@CheckReturnValue
public static final class AuthorizationRequestOptions.Builder
extends Object
Mutable request-option builder.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionReplaces the complete additional-parameter map.Replaces the complete application-data map.build()Builds the immutable options.Sets an optional login hint.Sets an optional prompt.Replaces the complete ordered resource list.Sets the requested callback delivery mode.Replaces the complete requested scope set.
-
Method Details
-
scopes
-
resources
-
responseMode
public @NonNull AuthorizationRequestOptions.Builder responseMode(@Nullable AuthorizationRequestOptions.ResponseMode value) Sets the requested callback delivery mode.- Parameters:
value- the mode, or null which restores the default- Returns:
- this builder
- Since:
- 1.0.0
-
prompt
Sets an optional prompt.- Parameters:
value- the prompt, or null to omit- Returns:
- this builder
- Since:
- 1.0.0
-
loginHint
Sets an optional login hint.- Parameters:
value- the hint, or null to omit- Returns:
- this builder
- Since:
- 1.0.0
-
applicationData
public @NonNull AuthorizationRequestOptions.Builder applicationData(@Nullable Map<@NonNull String, @NonNull String> value) Replaces the complete application-data map.- Parameters:
value- the data, or null which restores the default- Returns:
- this builder
- Since:
- 1.0.0
-
additionalParameters
public @NonNull AuthorizationRequestOptions.Builder additionalParameters(@Nullable Map<@NonNull String, @NonNull String> value) Replaces the complete additional-parameter map. Reserved OAuth names, including authorization_details, are rejected.- Parameters:
value- the parameters, or null which restores the default- Returns:
- this builder
- Since:
- 1.0.0
-
build
Builds the immutable options.- Returns:
- the options
- Since:
- 1.0.0
-