Class OidcClientRegistration
java.lang.Object
org.springframework.security.oauth2.server.authorization.AbstractOAuth2ClientRegistration
org.springframework.security.oauth2.server.authorization.oidc.OidcClientRegistration
- All Implemented Interfaces:
Serializable, ClaimAccessor, OAuth2ClientMetadataClaimAccessor, OidcClientMetadataClaimAccessor
public final class OidcClientRegistration
extends AbstractOAuth2ClientRegistration
implements OidcClientMetadataClaimAccessor
A representation of an OpenID Client Registration Request and Response, which is sent
to and returned from the Client Registration Endpoint, and contains a set of claims
about the Client's Registration information. The claims are defined by the OpenID
Connect Dynamic Client Registration 1.0 specification.
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractOAuth2ClientRegistration
AbstractOAuth2ClientRegistration.AbstractBuilder<T,B> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Constructs a newOidcClientRegistration.Builderwith empty claims.withClaims(Map<String, Object> claims) Constructs a newOidcClientRegistration.Builderwith the provided claims.Methods inherited from class AbstractOAuth2ClientRegistration
getClaimsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, getClaims, hasClaimMethods inherited from interface OAuth2ClientMetadataClaimAccessor
getClientId, getClientIdIssuedAt, getClientName, getClientSecret, getClientSecretExpiresAt, getGrantTypes, getJwkSetUrl, getRedirectUris, getResponseTypes, getScopes, getTokenEndpointAuthenticationMethod
-
Method Details
-
builder
Constructs a newOidcClientRegistration.Builderwith empty claims.- Returns:
- the
OidcClientRegistration.Builder
-
withClaims
Constructs a newOidcClientRegistration.Builderwith the provided claims.- Parameters:
claims- the claims to initialize the builder- Returns:
- the
OidcClientRegistration.Builder
-