Class OidcProviderMetadata.Builder
java.lang.Object
com.revetsec.oidc.OidcProviderMetadata.Builder
- Enclosing class:
OidcProviderMetadata
@NotThreadSafe
@CheckReturnValue
public static final class OidcProviderMetadata.Builder
extends Object
Mutable explicit provider configuration.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationEndpoint(@Nullable URI value) Sets the authorizationEndpoint.Sets RFC 9207 callback issuer support.build()Builds explicit provider metadata without I/O.Replaces the complete advertised codeChallengeMethodsSupported set.endSessionEndpoint(@Nullable URI value) Sets the optional RP-Initiated Logout endpoint without making a request.Replaces the complete idTokenSigningAlgValuesSupported set.Replaces the complete introspection_endpoint_auth_methods_supported role policy.Replaces the complete introspection_endpoint_auth_signing_alg_values_supported role policy.Sets the jwksUri.responseTypesSupported(@Nullable Set<@NonNull String> value) Replaces the complete responseTypesSupported set.revocationEndpoint(@Nullable URI value) Sets the revocationEndpoint.Replaces the complete revocation_endpoint_auth_methods_supported role policy.Replaces the complete revocation_endpoint_auth_signing_alg_values_supported role policy.subjectTypesSupported(@Nullable Set<@NonNull String> value) Replaces the complete subjectTypesSupported set.tokenEndpoint(@Nullable URI value) Sets the tokenEndpoint.Replaces the complete advertised tokenEndpointAuthMethodsSupported set.Replaces the complete token_endpoint_auth_signing_alg_values_supported role policy.userInfoEndpoint(@Nullable URI value) Sets the userInfoEndpoint.Replaces advertised signed-UserInfo algorithms.
-
Method Details
-
tokenEndpointAuthSigningAlgValuesSupported
public @NonNull OidcProviderMetadata.Builder tokenEndpointAuthSigningAlgValuesSupported(@Nullable Set<@NonNull String> value) Replaces the complete token_endpoint_auth_signing_alg_values_supported role policy.- Parameters:
value- names, or null to restore absence- Returns:
- this builder
- Since:
- 1.0.0
-
revocationEndpointAuthMethodsSupported
public @NonNull OidcProviderMetadata.Builder revocationEndpointAuthMethodsSupported(@Nullable Set<@NonNull String> value) Replaces the complete revocation_endpoint_auth_methods_supported role policy.- Parameters:
value- names, or null to restore absence- Returns:
- this builder
- Since:
- 1.0.0
-
revocationEndpointAuthSigningAlgValuesSupported
public @NonNull OidcProviderMetadata.Builder revocationEndpointAuthSigningAlgValuesSupported(@Nullable Set<@NonNull String> value) Replaces the complete revocation_endpoint_auth_signing_alg_values_supported role policy.- Parameters:
value- names, or null to restore absence- Returns:
- this builder
- Since:
- 1.0.0
-
introspectionEndpointAuthSigningAlgValuesSupported
public @NonNull OidcProviderMetadata.Builder introspectionEndpointAuthSigningAlgValuesSupported(@Nullable Set<@NonNull String> value) Replaces the complete introspection_endpoint_auth_signing_alg_values_supported role policy.- Parameters:
value- names, or null to restore absence- Returns:
- this builder
- Since:
- 1.0.0
-
introspectionEndpointAuthMethodsSupported
public @NonNull OidcProviderMetadata.Builder introspectionEndpointAuthMethodsSupported(@Nullable Set<@NonNull String> value) Replaces the complete introspection_endpoint_auth_methods_supported role policy.- Parameters:
value- names, or null to restore absence- Returns:
- this builder
- Since:
- 1.0.0
-
authorizationEndpoint
Sets the authorizationEndpoint.- Parameters:
value- endpoint, or null to restore the unset default- Returns:
- this builder
- Since:
- 1.0.0
-
tokenEndpoint
Sets the tokenEndpoint.- Parameters:
value- endpoint, or null to restore the unset default- Returns:
- this builder
- Since:
- 1.0.0
-
revocationEndpoint
Sets the revocationEndpoint.- Parameters:
value- endpoint, or null to restore the unset default- Returns:
- this builder
- Since:
- 1.0.0
-
jwksUri
Sets the jwksUri.- Parameters:
value- endpoint, or null to restore the unset default, or null to clear- Returns:
- this builder
- Since:
- 1.0.0
-
userInfoEndpoint
Sets the userInfoEndpoint.- Parameters:
value- endpoint, or null to restore the unset default, or null to clear- Returns:
- this builder
- Since:
- 1.0.0
-
endSessionEndpoint
Sets the optional RP-Initiated Logout endpoint without making a request. Null restores absence.- Parameters:
value- the explicit provider endpoint, or null to clear it- Returns:
- this builder
- Since:
- 1.0.0
-
subjectTypesSupported
public @NonNull OidcProviderMetadata.Builder subjectTypesSupported(@Nullable Set<@NonNull String> value) Replaces the complete subjectTypesSupported set. Null restores the explicit configuration default.- Parameters:
value- values, or null- Returns:
- this builder
- Since:
- 1.0.0
-
idTokenSigningAlgValuesSupported
public @NonNull OidcProviderMetadata.Builder idTokenSigningAlgValuesSupported(@Nullable Set<@NonNull String> value) Replaces the complete idTokenSigningAlgValuesSupported set. Null restores the explicit configuration default.- Parameters:
value- values, or null- Returns:
- this builder
- Since:
- 1.0.0
-
responseTypesSupported
public @NonNull OidcProviderMetadata.Builder responseTypesSupported(@Nullable Set<@NonNull String> value) Replaces the complete responseTypesSupported set. Null restores the explicit configuration default.- Parameters:
value- values, or null- Returns:
- this builder
- Since:
- 1.0.0
-
codeChallengeMethodsSupported
public @NonNull OidcProviderMetadata.Builder codeChallengeMethodsSupported(@Nullable Set<@NonNull String> value) Replaces the complete advertised codeChallengeMethodsSupported set.- Parameters:
value- values, or null for absent- Returns:
- this builder
- Since:
- 1.0.0
-
tokenEndpointAuthMethodsSupported
public @NonNull OidcProviderMetadata.Builder tokenEndpointAuthMethodsSupported(@Nullable Set<@NonNull String> value) Replaces the complete advertised tokenEndpointAuthMethodsSupported set.- Parameters:
value- values, or null for absent- Returns:
- this builder
- Since:
- 1.0.0
-
userInfoSigningAlgValuesSupported
public @NonNull OidcProviderMetadata.Builder userInfoSigningAlgValuesSupported(@Nullable Set<@NonNull String> value) Replaces advertised signed-UserInfo algorithms. Null denotes absent advertisement.- Parameters:
value- complete supported set, or null- Returns:
- this builder
- Since:
- 1.0.0
-
authorizationResponseIssuerSupported
public @NonNull OidcProviderMetadata.Builder authorizationResponseIssuerSupported(@Nullable Boolean value) Sets RFC 9207 callback issuer support.- Parameters:
value- whether advertised, or null to restore false- Returns:
- this builder
- Since:
- 1.0.0
-
build
Builds explicit provider metadata without I/O.- Returns:
- the metadata
- Since:
- 1.0.0
-