public class RegisteredClient
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
RegisteredClient.Builder
A builder for
RegisteredClient. |
| Modifier | Constructor and Description |
|---|---|
protected |
RegisteredClient() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static RegisteredClient.Builder |
from(RegisteredClient registeredClient)
Returns a new
RegisteredClient.Builder, initialized with the values from the provided RegisteredClient. |
java.util.Set<org.springframework.security.oauth2.core.AuthorizationGrantType> |
getAuthorizationGrantTypes()
Returns the
authorization grant type(s) that the client may use. |
java.util.Set<org.springframework.security.oauth2.core.ClientAuthenticationMethod> |
getClientAuthenticationMethods()
Returns the
authentication method(s) that the client may use. |
java.lang.String |
getClientId()
Returns the client identifier.
|
java.time.Instant |
getClientIdIssuedAt()
Returns the time at which the client identifier was issued.
|
java.lang.String |
getClientName()
Returns the client name.
|
java.lang.String |
getClientSecret()
Returns the client secret or
null if not available. |
java.time.Instant |
getClientSecretExpiresAt()
Returns the time at which the client secret expires or
null if it does not expire. |
ClientSettings |
getClientSettings()
Returns the
client configuration settings. |
java.lang.String |
getId()
Returns the identifier for the registration.
|
java.util.Set<java.lang.String> |
getRedirectUris()
Returns the redirect URI(s) that the client may use in redirect-based flows.
|
java.util.Set<java.lang.String> |
getScopes()
Returns the scope(s) that the client may use.
|
TokenSettings |
getTokenSettings()
Returns the
token configuration settings. |
int |
hashCode() |
java.lang.String |
toString() |
static RegisteredClient.Builder |
withId(java.lang.String id)
Returns a new
RegisteredClient.Builder, initialized with the provided registration identifier. |
public java.lang.String getId()
public java.lang.String getClientId()
@Nullable public java.time.Instant getClientIdIssuedAt()
@Nullable public java.lang.String getClientSecret()
null if not available.null if not available@Nullable public java.time.Instant getClientSecretExpiresAt()
null if it does not expire.null if it does not expirepublic java.lang.String getClientName()
public java.util.Set<org.springframework.security.oauth2.core.ClientAuthenticationMethod> getClientAuthenticationMethods()
authentication method(s) that the client may use.Set of authentication method(s)public java.util.Set<org.springframework.security.oauth2.core.AuthorizationGrantType> getAuthorizationGrantTypes()
authorization grant type(s) that the client may use.Set of authorization grant type(s)public java.util.Set<java.lang.String> getRedirectUris()
Set of redirect URI(s)public java.util.Set<java.lang.String> getScopes()
Set of scope(s)public ClientSettings getClientSettings()
client configuration settings.ClientSettingspublic TokenSettings getTokenSettings()
token configuration settings.TokenSettingspublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static RegisteredClient.Builder withId(java.lang.String id)
RegisteredClient.Builder, initialized with the provided registration identifier.id - the identifier for the registrationRegisteredClient.Builderpublic static RegisteredClient.Builder from(RegisteredClient registeredClient)
RegisteredClient.Builder, initialized with the values from the provided RegisteredClient.registeredClient - the RegisteredClient used for initializing the RegisteredClient.BuilderRegisteredClient.Builder