Class OidcProviderConfiguration
java.lang.Object
org.springframework.security.oauth2.server.authorization.AbstractOAuth2AuthorizationServerMetadata
org.springframework.security.oauth2.server.authorization.oidc.OidcProviderConfiguration
- All Implemented Interfaces:
Serializable
,org.springframework.security.oauth2.core.ClaimAccessor
,OAuth2AuthorizationServerMetadataClaimAccessor
,OidcProviderMetadataClaimAccessor
public final class OidcProviderConfiguration
extends AbstractOAuth2AuthorizationServerMetadata
implements OidcProviderMetadataClaimAccessor
A representation of an OpenID Provider Configuration Response, which is returned from
an Issuer's Discovery Endpoint, and contains a set of claims about the OpenID
Provider's configuration. The claims are defined by the OpenID Connect Discovery 1.0
specification.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Helps configure anOidcProviderConfiguration
.Nested classes/interfaces inherited from class org.springframework.security.oauth2.server.authorization.AbstractOAuth2AuthorizationServerMetadata
AbstractOAuth2AuthorizationServerMetadata.AbstractBuilder<T extends AbstractOAuth2AuthorizationServerMetadata,
B extends AbstractOAuth2AuthorizationServerMetadata.AbstractBuilder<T, B>> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Constructs a newOidcProviderConfiguration.Builder
with empty claims.withClaims
(Map<String, Object> claims) Constructs a newOidcProviderConfiguration.Builder
with the provided claims.Methods inherited from class org.springframework.security.oauth2.server.authorization.AbstractOAuth2AuthorizationServerMetadata
getClaims
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, getClaims, hasClaim
Methods inherited from interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationServerMetadataClaimAccessor
getAuthorizationEndpoint, getClientRegistrationEndpoint, getCodeChallengeMethods, getDeviceAuthorizationEndpoint, getGrantTypes, getIssuer, getJwkSetUrl, getResponseTypes, getScopes, getTokenEndpoint, getTokenEndpointAuthenticationMethods, getTokenIntrospectionEndpoint, getTokenIntrospectionEndpointAuthenticationMethods, getTokenRevocationEndpoint, getTokenRevocationEndpointAuthenticationMethods, isTlsClientCertificateBoundAccessTokens
Methods inherited from interface org.springframework.security.oauth2.server.authorization.oidc.OidcProviderMetadataClaimAccessor
getEndSessionEndpoint, getIdTokenSigningAlgorithms, getSubjectTypes, getUserInfoEndpoint
-
Method Details
-
builder
Constructs a newOidcProviderConfiguration.Builder
with empty claims.- Returns:
- the
OidcProviderConfiguration.Builder
-
withClaims
Constructs a newOidcProviderConfiguration.Builder
with the provided claims.- Parameters:
claims
- the claims to initialize the builder- Returns:
- the
OidcProviderConfiguration.Builder
-