public static class RegisteredClient.Builder extends Object implements Serializable
RegisteredClient
.Modifier | Constructor and Description |
---|---|
protected | Builder(RegisteredClient registeredClient) |
protected | Builder(String id) |
Modifier and Type | Method and Description |
---|---|
RegisteredClient.Builder | authorizationGrantType(AuthorizationGrantType authorizationGrantType) Adds an authorization grant type the client may use. |
RegisteredClient.Builder | authorizationGrantTypes(Consumer<Set<AuthorizationGrantType>> authorizationGrantTypesConsumer) A Consumer of the authorization grant type(s) allowing the ability to add, replace, or remove. |
RegisteredClient | build() Builds a new RegisteredClient . |
RegisteredClient.Builder | clientAuthenticationMethod(ClientAuthenticationMethod clientAuthenticationMethod) Adds an authentication method the client may use when authenticating with the authorization server. |
RegisteredClient.Builder | clientAuthenticationMethods(Consumer<Set<ClientAuthenticationMethod>> clientAuthenticationMethodsConsumer) A Consumer of the authentication method(s) allowing the ability to add, replace, or remove. |
RegisteredClient.Builder | clientId(String clientId) Sets the client identifier. |
RegisteredClient.Builder | clientSecret(String clientSecret) Sets the client secret. |
RegisteredClient.Builder | id(String id) Sets the identifier for the registration. |
RegisteredClient.Builder | redirectUri(String redirectUri) Adds a redirect URI the client may use in a redirect-based flow. |
RegisteredClient.Builder | redirectUris(Consumer<Set<String>> redirectUrisConsumer) A Consumer of the redirect URI(s) allowing the ability to add, replace, or remove. |
RegisteredClient.Builder | scope(String scope) Adds a scope the client may use. |
RegisteredClient.Builder | scopes(Consumer<Set<String>> scopesConsumer) A Consumer of the scope(s) allowing the ability to add, replace, or remove. |
protected Builder(String id)
protected Builder(RegisteredClient registeredClient)
public RegisteredClient.Builder id(String id)
id
- the identifier for the registrationRegisteredClient.Builder
public RegisteredClient.Builder clientId(String clientId)
clientId
- the client identifierRegisteredClient.Builder
public RegisteredClient.Builder clientSecret(String clientSecret)
clientSecret
- the client secretRegisteredClient.Builder
public RegisteredClient.Builder clientAuthenticationMethod(ClientAuthenticationMethod clientAuthenticationMethod)
authentication method
the client may use when authenticating with the authorization server.clientAuthenticationMethod
- the authentication methodRegisteredClient.Builder
public RegisteredClient.Builder clientAuthenticationMethods(Consumer<Set<ClientAuthenticationMethod>> clientAuthenticationMethodsConsumer)
Consumer
of the authentication method(s)
allowing the ability to add, replace, or remove.clientAuthenticationMethodsConsumer
- a Consumer
of the authentication method(s)RegisteredClient.Builder
public RegisteredClient.Builder authorizationGrantType(AuthorizationGrantType authorizationGrantType)
authorization grant type
the client may use.authorizationGrantType
- the authorization grant typeRegisteredClient.Builder
public RegisteredClient.Builder authorizationGrantTypes(Consumer<Set<AuthorizationGrantType>> authorizationGrantTypesConsumer)
Consumer
of the authorization grant type(s)
allowing the ability to add, replace, or remove.authorizationGrantTypesConsumer
- a Consumer
of the authorization grant type(s)RegisteredClient.Builder
public RegisteredClient.Builder redirectUri(String redirectUri)
redirectUri
- the redirect URIRegisteredClient.Builder
public RegisteredClient.Builder redirectUris(Consumer<Set<String>> redirectUrisConsumer)
Consumer
of the redirect URI(s) allowing the ability to add, replace, or remove.redirectUrisConsumer
- a Consumer
of the redirect URI(s)RegisteredClient.Builder
public RegisteredClient.Builder scope(String scope)
scope
- the scopeRegisteredClient.Builder
public RegisteredClient.Builder scopes(Consumer<Set<String>> scopesConsumer)
Consumer
of the scope(s) allowing the ability to add, replace, or remove.scopesConsumer
- a Consumer
of the scope(s)RegisteredClient.Builder
public RegisteredClient build()
RegisteredClient
.RegisteredClient