public final class ClientRegistration
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ClientRegistration.Builder
A builder for
ClientRegistration . |
class |
ClientRegistration.ProviderDetails
Details of the Provider.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.core.AuthorizationGrantType |
getAuthorizationGrantType()
Returns the
authorization grant type used for the
client. |
org.springframework.security.oauth2.core.ClientAuthenticationMethod |
getClientAuthenticationMethod()
Returns the
authentication method used when
authenticating the client with the authorization server. |
java.lang.String |
getClientId()
Returns the client identifier.
|
java.lang.String |
getClientName()
Returns the logical name of the client or registration.
|
java.lang.String |
getClientSecret()
Returns the client secret.
|
ClientRegistration.ProviderDetails |
getProviderDetails()
Returns the details of the provider.
|
java.lang.String |
getRedirectUri()
Returns the uri (or uri template) for the redirection endpoint.
|
java.lang.String |
getRedirectUriTemplate()
Deprecated.
Use
getRedirectUri() instead |
java.lang.String |
getRegistrationId()
Returns the identifier for the registration.
|
java.util.Set<java.lang.String> |
getScopes()
Returns the scope(s) used for the client.
|
java.lang.String |
toString() |
static ClientRegistration.Builder |
withClientRegistration(ClientRegistration clientRegistration)
Returns a new
ClientRegistration.Builder , initialized with the provided
ClientRegistration . |
static ClientRegistration.Builder |
withRegistrationId(java.lang.String registrationId)
Returns a new
ClientRegistration.Builder , initialized with the provided registration
identifier. |
public java.lang.String getRegistrationId()
public java.lang.String getClientId()
public java.lang.String getClientSecret()
public org.springframework.security.oauth2.core.ClientAuthenticationMethod getClientAuthenticationMethod()
authentication method
used when
authenticating the client with the authorization server.ClientAuthenticationMethod
public org.springframework.security.oauth2.core.AuthorizationGrantType getAuthorizationGrantType()
authorization grant type
used for the
client.AuthorizationGrantType
@Deprecated public java.lang.String getRedirectUriTemplate()
getRedirectUri()
insteadpublic java.lang.String getRedirectUri()
public java.util.Set<java.lang.String> getScopes()
Set
of scope(s)public ClientRegistration.ProviderDetails getProviderDetails()
ClientRegistration.ProviderDetails
public java.lang.String getClientName()
public java.lang.String toString()
toString
in class java.lang.Object
public static ClientRegistration.Builder withRegistrationId(java.lang.String registrationId)
ClientRegistration.Builder
, initialized with the provided registration
identifier.registrationId
- the identifier for the registrationClientRegistration.Builder
public static ClientRegistration.Builder withClientRegistration(ClientRegistration clientRegistration)
ClientRegistration.Builder
, initialized with the provided
ClientRegistration
.clientRegistration
- the ClientRegistration
to copy fromClientRegistration.Builder