Class AuthorizationServerMetadata.Builder
java.lang.Object
com.revetsec.oauth.AuthorizationServerMetadata.Builder
- Enclosing class:
AuthorizationServerMetadata
@NotThreadSafe
@CheckReturnValue
public static final class AuthorizationServerMetadata.Builder
extends Object
Builds manually configured metadata.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationEndpoint(@Nullable URI value) Sets the authorization endpoint.Sets whether RFC 9207 issuer response support was advertised.build()Builds manually configured metadata.Sets the complete advertised PKCE method set.introspectionEndpoint(@Nullable URI value) Sets optional introspection_endpoint.Sets introspection endpoint client authentication methods.Replaces the complete introspection_endpoint_auth_signing_alg_values_supported role policy, preserving an empty set.Sets optional jwks_uri.revocationEndpoint(@Nullable URI value) Sets an optional revocation endpoint.Replaces the complete revocation_endpoint_auth_methods_supported role policy, preserving an empty set.Replaces the complete revocation_endpoint_auth_signing_alg_values_supported role policy, preserving an empty set.tokenEndpoint(@Nullable URI value) Sets the token endpoint.Sets the complete advertised client authentication method set.Replaces the complete token_endpoint_auth_signing_alg_values_supported role policy, preserving an empty set.
-
Method Details
-
tokenEndpointAuthSigningAlgValuesSupported
public @NonNull AuthorizationServerMetadata.Builder tokenEndpointAuthSigningAlgValuesSupported(@Nullable Set<@NonNull String> value) Replaces the complete token_endpoint_auth_signing_alg_values_supported role policy, preserving an empty set.- Parameters:
value- names, or null to restore absence- Returns:
- this builder
- Since:
- 1.0.0
-
revocationEndpointAuthMethodsSupported
public @NonNull AuthorizationServerMetadata.Builder revocationEndpointAuthMethodsSupported(@Nullable Set<@NonNull String> value) Replaces the complete revocation_endpoint_auth_methods_supported role policy, preserving an empty set.- Parameters:
value- names, or null to restore absence- Returns:
- this builder
- Since:
- 1.0.0
-
revocationEndpointAuthSigningAlgValuesSupported
public @NonNull AuthorizationServerMetadata.Builder revocationEndpointAuthSigningAlgValuesSupported(@Nullable Set<@NonNull String> value) Replaces the complete revocation_endpoint_auth_signing_alg_values_supported role policy, preserving an empty set.- Parameters:
value- names, or null to restore absence- Returns:
- this builder
- Since:
- 1.0.0
-
introspectionEndpointAuthSigningAlgValuesSupported
public @NonNull AuthorizationServerMetadata.Builder introspectionEndpointAuthSigningAlgValuesSupported(@Nullable Set<@NonNull String> value) Replaces the complete introspection_endpoint_auth_signing_alg_values_supported role policy, preserving an empty set.- Parameters:
value- names, or null to restore absence- Returns:
- this builder
- Since:
- 1.0.0
-
authorizationEndpoint
Sets the authorization endpoint.- Parameters:
value- endpoint, or null to restore the unset default- Returns:
- this builder
- Since:
- 1.0.0
-
tokenEndpoint
Sets the token endpoint.- Parameters:
value- endpoint, or null to restore the unset default- Returns:
- this builder
- Since:
- 1.0.0
-
jwksUri
Sets optional jwks_uri.- Parameters:
value- endpoint, or null to omit- Returns:
- this builder
- Since:
- 1.0.0
-
introspectionEndpoint
Sets optional introspection_endpoint.- Parameters:
value- endpoint, or null to omit- Returns:
- this builder
- Since:
- 1.0.0
-
revocationEndpoint
Sets an optional revocation endpoint.- Parameters:
value- endpoint, or null to restore the unset default, or null to omit- Returns:
- this builder
- Since:
- 1.0.0
-
codeChallengeMethodsSupported
public @NonNull AuthorizationServerMetadata.Builder codeChallengeMethodsSupported(@Nullable Set<@NonNull String> value) Sets the complete advertised PKCE method set. Null denotes absent metadata.- Parameters:
value- methods, or null- Returns:
- this builder
- Since:
- 1.0.0
-
tokenEndpointAuthMethodsSupported
public @NonNull AuthorizationServerMetadata.Builder tokenEndpointAuthMethodsSupported(@Nullable Set<@NonNull String> value) Sets the complete advertised client authentication method set. Null denotes absent metadata.- Parameters:
value- methods, or null- Returns:
- this builder
- Since:
- 1.0.0
-
introspectionEndpointAuthMethodsSupported
public @NonNull AuthorizationServerMetadata.Builder introspectionEndpointAuthMethodsSupported(@Nullable Set<@NonNull String> value) Sets introspection endpoint client authentication methods.- Parameters:
value- methods, or null to restore absence- Returns:
- this builder
- Since:
- 1.0.0
-
authorizationResponseIssuerSupported
public @NonNull AuthorizationServerMetadata.Builder authorizationResponseIssuerSupported(@Nullable Boolean value) Sets whether RFC 9207 issuer response support was advertised.- Parameters:
value- whether advertised, or null which restores the default- Returns:
- this builder
- Since:
- 1.0.0
-
build
Builds manually configured metadata.- Returns:
- metadata
- Since:
- 1.0.0
-