Class OidcAuthenticationOptions.Builder
java.lang.Object
com.revetsec.oidc.OidcAuthenticationOptions.Builder
- Enclosing class:
OidcAuthenticationOptions
@NotThreadSafe
@CheckReturnValue
public static final class OidcAuthenticationOptions.Builder
extends Object
Mutable per-login option builder.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionacrPreferences(@Nullable List<@NonNull String> value) Sets ordered request preferences without changing ID-token acceptance.Sets the complete nonreserved authorization parameters.Sets the complete application data.build()Builds immutable login options.Sets the login hint.Sets the maximum authentication age; zero still requires auth_time.Sets the Core prompt values; none must be used alone.requiredAcrValues(@Nullable Set<@NonNull String> value) Sets the complete accepted ACR override.Sets the ordered resource override.Sets callback delivery.Sets the complete scope override.
-
Method Details
-
scopes
-
resources
-
requiredAcrValues
public @NonNull OidcAuthenticationOptions.Builder requiredAcrValues(@Nullable Set<@NonNull String> value) Sets the complete accepted ACR override. Null restores the default.- Parameters:
value- the value, or null- Returns:
- this builder
- Since:
- 1.0.0
-
acrPreferences
public @NonNull OidcAuthenticationOptions.Builder acrPreferences(@Nullable List<@NonNull String> value) Sets ordered request preferences without changing ID-token acceptance. Null inherits client defaults; an empty list omits acr_values while keeping the effective acceptance requirement.- Parameters:
value- distinct nonempty visible-ASCII preferences, or null- Returns:
- this builder
- Throws:
IllegalArgumentException- if a value is malformed or duplicated- Since:
- 1.0.0
-
maxAge
Sets the maximum authentication age; zero still requires auth_time. Null restores the default.- Parameters:
value- the value, or null- Returns:
- this builder
- Since:
- 1.0.0
-
prompt
Sets the Core prompt values; none must be used alone. Null restores the default.- Parameters:
value- the value, or null- Returns:
- this builder
- Since:
- 1.0.0
-
loginHint
Sets the login hint. Null restores the default.- Parameters:
value- the value, or null- Returns:
- this builder
- Since:
- 1.0.0
-
applicationData
public @NonNull OidcAuthenticationOptions.Builder applicationData(@Nullable Map<@NonNull String, @NonNull String> value) Sets the complete application data. Null restores the default.- Parameters:
value- the value, or null- Returns:
- this builder
- Since:
- 1.0.0
-
additionalParameters
public @NonNull OidcAuthenticationOptions.Builder additionalParameters(@Nullable Map<@NonNull String, @NonNull String> value) Sets the complete nonreserved authorization parameters. Null restores the default.- Parameters:
value- the value, or null- Returns:
- this builder
- Since:
- 1.0.0
-
responseMode
public @NonNull OidcAuthenticationOptions.Builder responseMode(@Nullable AuthorizationRequestOptions.ResponseMode value) Sets callback delivery. Null restores query delivery.- Parameters:
value- mode, or null- Returns:
- this builder
- Since:
- 1.0.0
-
build
Builds immutable login options.- Returns:
- the options
- Since:
- 1.0.0
-