public static class ClientRegistration.Builder
extends java.lang.Object
ClientRegistration
.Modifier and Type | Method and Description |
---|---|
ClientRegistration.Builder |
authorizationGrantType(AuthorizationGrantType authorizationGrantType)
Sets the
authorization grant type used for the client. |
ClientRegistration.Builder |
authorizationUri(java.lang.String authorizationUri)
Sets the uri for the authorization endpoint.
|
ClientRegistration |
build()
Builds a new
ClientRegistration . |
ClientRegistration.Builder |
clientAuthenticationMethod(ClientAuthenticationMethod clientAuthenticationMethod)
Sets the
authentication method used
when authenticating the client with the authorization server. |
ClientRegistration.Builder |
clientId(java.lang.String clientId)
Sets the client identifier.
|
ClientRegistration.Builder |
clientName(java.lang.String clientName)
Sets the logical name of the client or registration.
|
ClientRegistration.Builder |
clientSecret(java.lang.String clientSecret)
Sets the client secret.
|
ClientRegistration.Builder |
jwkSetUri(java.lang.String jwkSetUri)
Sets the uri for the JSON Web Key (JWK) Set endpoint.
|
ClientRegistration.Builder |
redirectUriTemplate(java.lang.String redirectUriTemplate)
Sets the uri (or uri template) for the redirection endpoint.
|
ClientRegistration.Builder |
registrationId(java.lang.String registrationId)
Sets the registration id.
|
ClientRegistration.Builder |
scope(java.util.Collection<java.lang.String> scope)
Sets the scope(s) used for the client.
|
ClientRegistration.Builder |
scope(java.lang.String... scope)
Sets the scope(s) used for the client.
|
ClientRegistration.Builder |
tokenUri(java.lang.String tokenUri)
Sets the uri for the token endpoint.
|
ClientRegistration.Builder |
userInfoAuthenticationMethod(AuthenticationMethod userInfoAuthenticationMethod)
Sets the authentication method for the user info endpoint.
|
ClientRegistration.Builder |
userInfoUri(java.lang.String userInfoUri)
Sets the uri for the user info endpoint.
|
ClientRegistration.Builder |
userNameAttributeName(java.lang.String userNameAttributeName)
Sets the attribute name used to access the user's name from the user info response.
|
public ClientRegistration.Builder registrationId(java.lang.String registrationId)
registrationId
- the registration idClientRegistration.Builder
public ClientRegistration.Builder clientId(java.lang.String clientId)
clientId
- the client identifierClientRegistration.Builder
public ClientRegistration.Builder clientSecret(java.lang.String clientSecret)
clientSecret
- the client secretClientRegistration.Builder
public ClientRegistration.Builder clientAuthenticationMethod(ClientAuthenticationMethod clientAuthenticationMethod)
authentication method
used
when authenticating the client with the authorization server.clientAuthenticationMethod
- the authentication method used for the clientClientRegistration.Builder
public ClientRegistration.Builder authorizationGrantType(AuthorizationGrantType authorizationGrantType)
authorization grant type
used for the client.authorizationGrantType
- the authorization grant type used for the clientClientRegistration.Builder
public ClientRegistration.Builder redirectUriTemplate(java.lang.String redirectUriTemplate)
redirectUriTemplate
- the uri for the redirection endpointClientRegistration.Builder
public ClientRegistration.Builder scope(java.lang.String... scope)
scope
- the scope(s) used for the clientClientRegistration.Builder
public ClientRegistration.Builder scope(java.util.Collection<java.lang.String> scope)
scope
- the scope(s) used for the clientClientRegistration.Builder
public ClientRegistration.Builder authorizationUri(java.lang.String authorizationUri)
authorizationUri
- the uri for the authorization endpointClientRegistration.Builder
public ClientRegistration.Builder tokenUri(java.lang.String tokenUri)
tokenUri
- the uri for the token endpointClientRegistration.Builder
public ClientRegistration.Builder userInfoUri(java.lang.String userInfoUri)
userInfoUri
- the uri for the user info endpointClientRegistration.Builder
public ClientRegistration.Builder userInfoAuthenticationMethod(AuthenticationMethod userInfoAuthenticationMethod)
userInfoAuthenticationMethod
- the authentication method for the user info endpointClientRegistration.Builder
public ClientRegistration.Builder userNameAttributeName(java.lang.String userNameAttributeName)
userNameAttributeName
- the attribute name used to access the user's name from the user info responseClientRegistration.Builder
public ClientRegistration.Builder jwkSetUri(java.lang.String jwkSetUri)
jwkSetUri
- the uri for the JSON Web Key (JWK) Set endpointClientRegistration.Builder
public ClientRegistration.Builder clientName(java.lang.String clientName)
clientName
- the client or registration nameClientRegistration.Builder
public ClientRegistration build()
ClientRegistration
.ClientRegistration