public class RegisteredClient extends Object implements 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 |
---|---|
Set<AuthorizationGrantType> | getAuthorizationGrantTypes() Returns the authorization grant type(s) that the client may use. |
Set<ClientAuthenticationMethod> | getClientAuthenticationMethods() Returns the authentication method(s) used when authenticating the client with the authorization server. |
String | getClientId() Returns the client identifier. |
String | getClientSecret() Returns the client secret. |
String | getId() Returns the identifier for the registration. |
Set<String> | getRedirectUris() Returns the redirect URI(s) that the client may use in redirect-based flows. |
Set<String> | getScopes() Returns the scope(s) used by the client. |
String | toString() |
static RegisteredClient.Builder | withId(String id) Returns a new RegisteredClient.Builder , initialized with the provided registration identifier. |
static RegisteredClient.Builder | withRegisteredClient(RegisteredClient registeredClient) Returns a new RegisteredClient.Builder , initialized with the provided RegisteredClient . |
public String getId()
public String getClientId()
public String getClientSecret()
public Set<ClientAuthenticationMethod> getClientAuthenticationMethods()
authentication method(s)
used when authenticating the client with the authorization server.Set
of authentication method(s)
public Set<AuthorizationGrantType> getAuthorizationGrantTypes()
authorization grant type(s)
that the client may use.Set
of authorization grant type(s)
public Set<String> getRedirectUris()
Set
of redirect URI(s)public Set<String> getScopes()
Set
of scope(s)public static RegisteredClient.Builder withId(String id)
RegisteredClient.Builder
, initialized with the provided registration identifier.id
- the identifier for the registrationRegisteredClient.Builder
public static RegisteredClient.Builder withRegisteredClient(RegisteredClient registeredClient)
RegisteredClient.Builder
, initialized with the provided RegisteredClient
.registeredClient
- the RegisteredClient
to copy fromRegisteredClient.Builder