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 |
---|---|
AuthorizationGrantType |
getAuthorizationGrantType()
Returns the
authorization grant type used for the client. |
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 |
getRedirectUriTemplate()
Returns the uri (or uri template) for the redirection endpoint.
|
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 ClientAuthenticationMethod getClientAuthenticationMethod()
authentication method
used
when authenticating the client with the authorization server.ClientAuthenticationMethod
public AuthorizationGrantType getAuthorizationGrantType()
authorization grant type
used for the client.AuthorizationGrantType
public java.lang.String getRedirectUriTemplate()
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