Class RegisteredClient
java.lang.Object
org.springframework.security.oauth2.server.authorization.client.RegisteredClient
- All Implemented Interfaces:
Serializable
A representation of a client registration with an OAuth 2.0 Authorization Server.
- Since:
- 0.0.1
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RegisteredClient.Builderfrom(RegisteredClient registeredClient) Returns a newRegisteredClient.Builder, initialized with the values from the providedRegisteredClient.Set<org.springframework.security.oauth2.core.AuthorizationGrantType>Returns theauthorization grant type(s)that the client may use.Set<org.springframework.security.oauth2.core.ClientAuthenticationMethod>Returns theauthentication method(s)that the client may use.Returns the client identifier.Returns the time at which the client identifier was issued.Returns the client name.Returns the client secret ornullif not available.Returns the time at which the client secret expires ornullif it does not expire.Returns theclient configuration settings.getId()Returns the identifier for the registration.Returns the post logout redirect URI(s) that the client may use for logout.Returns the redirect URI(s) that the client may use in redirect-based flows.Returns the scope(s) that the client may use.Returns thetoken configuration settings.inthashCode()toString()static RegisteredClient.BuilderReturns a newRegisteredClient.Builder, initialized with the provided registration identifier.
-
Constructor Details
-
RegisteredClient
protected RegisteredClient()
-
-
Method Details
-
getId
Returns the identifier for the registration.- Returns:
- the identifier for the registration
-
getClientId
Returns the client identifier.- Returns:
- the client identifier
-
getClientIdIssuedAt
Returns the time at which the client identifier was issued.- Returns:
- the time at which the client identifier was issued
-
getClientSecret
Returns the client secret ornullif not available.- Returns:
- the client secret or
nullif not available
-
getClientSecretExpiresAt
Returns the time at which the client secret expires ornullif it does not expire.- Returns:
- the time at which the client secret expires or
nullif it does not expire
-
getClientName
Returns the client name.- Returns:
- the client name
-
getClientAuthenticationMethods
public Set<org.springframework.security.oauth2.core.ClientAuthenticationMethod> getClientAuthenticationMethods()Returns theauthentication method(s)that the client may use.- Returns:
- the
Setofauthentication method(s)
-
getAuthorizationGrantTypes
public Set<org.springframework.security.oauth2.core.AuthorizationGrantType> getAuthorizationGrantTypes()Returns theauthorization grant type(s)that the client may use.- Returns:
- the
Setofauthorization grant type(s)
-
getRedirectUris
Returns the redirect URI(s) that the client may use in redirect-based flows.- Returns:
- the
Setof redirect URI(s)
-
getPostLogoutRedirectUris
Returns the post logout redirect URI(s) that the client may use for logout. Thepost_logout_redirect_uriparameter is used by the client when requesting that the End-User's User Agent be redirected to after a logout has been performed.- Returns:
- the
Setof post logout redirect URI(s) - Since:
- 1.1
-
getScopes
Returns the scope(s) that the client may use.- Returns:
- the
Setof scope(s)
-
getClientSettings
Returns theclient configuration settings.- Returns:
- the
ClientSettings
-
getTokenSettings
Returns thetoken configuration settings.- Returns:
- the
TokenSettings
-
equals
-
hashCode
public int hashCode() -
toString
-
withId
Returns a newRegisteredClient.Builder, initialized with the provided registration identifier.- Parameters:
id- the identifier for the registration- Returns:
- the
RegisteredClient.Builder
-
from
Returns a newRegisteredClient.Builder, initialized with the values from the providedRegisteredClient.- Parameters:
registeredClient- theRegisteredClientused for initializing theRegisteredClient.Builder- Returns:
- the
RegisteredClient.Builder
-