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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static RegisteredClient.Builder
from
(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 ornull
if not available.Returns the time at which the client secret expires ornull
if 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
.int
hashCode()
toString()
static RegisteredClient.Builder
Returns 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 ornull
if not available.- Returns:
- the client secret or
null
if not available
-
getClientSecretExpiresAt
Returns the time at which the client secret expires ornull
if it does not expire.- Returns:
- the time at which the client secret expires or
null
if 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
Set
ofauthentication method(s)
-
getAuthorizationGrantTypes
public Set<org.springframework.security.oauth2.core.AuthorizationGrantType> getAuthorizationGrantTypes()Returns theauthorization grant type(s)
that the client may use.- Returns:
- the
Set
ofauthorization grant type(s)
-
getRedirectUris
Returns the redirect URI(s) that the client may use in redirect-based flows.- Returns:
- the
Set
of redirect URI(s)
-
getPostLogoutRedirectUris
Returns the post logout redirect URI(s) that the client may use for logout. Thepost_logout_redirect_uri
parameter 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
Set
of post logout redirect URI(s) - Since:
- 1.1
-
getScopes
Returns the scope(s) that the client may use.- Returns:
- the
Set
of 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
- theRegisteredClient
used for initializing theRegisteredClient.Builder
- Returns:
- the
RegisteredClient.Builder
-