Class ClientSettings.Builder
java.lang.Object
org.springframework.security.oauth2.server.authorization.settings.AbstractSettings.AbstractBuilder<ClientSettings,ClientSettings.Builder>
org.springframework.security.oauth2.server.authorization.settings.ClientSettings.Builder
- Enclosing class:
- ClientSettings
public static final class ClientSettings.Builder
extends AbstractSettings.AbstractBuilder<ClientSettings,ClientSettings.Builder>
A builder for
ClientSettings.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theClientSettings.Sets theURLfor the Client's JSON Web Key Set.requireAuthorizationConsent(boolean requireAuthorizationConsent) Set totrueif authorization consent is required when the client requests access.requireProofKey(boolean requireProofKey) Set totrueif the client is required to provide a proof key challenge and verifier when performing the Authorization Code Grant flow.tokenEndpointAuthenticationSigningAlgorithm(org.springframework.security.oauth2.jose.jws.JwsAlgorithm authenticationSigningAlgorithm) Sets theJWSalgorithm that must be used for signing theJWTused to authenticate the Client at the Token Endpoint for theprivate_key_jwtandclient_secret_jwtauthentication methods.x509CertificateSubjectDN(String x509CertificateSubjectDN) Sets the expected subject distinguished name associated to the clientX509Certificatereceived during client authentication when using thetls_client_authmethod.Methods inherited from class org.springframework.security.oauth2.server.authorization.settings.AbstractSettings.AbstractBuilder
getSettings, getThis, setting, settings
-
Method Details
-
requireProofKey
Set totrueif the client is required to provide a proof key challenge and verifier when performing the Authorization Code Grant flow.- Parameters:
requireProofKey-trueif the client is required to provide a proof key challenge and verifier,falseotherwise- Returns:
- the
ClientSettings.Builderfor further configuration
-
requireAuthorizationConsent
Set totrueif authorization consent is required when the client requests access. This applies to all interactive flows (e.g.authorization_codeanddevice_code).- Parameters:
requireAuthorizationConsent-trueif authorization consent is required when the client requests access,falseotherwise- Returns:
- the
ClientSettings.Builderfor further configuration
-
jwkSetUrl
Sets theURLfor the Client's JSON Web Key Set.- Parameters:
jwkSetUrl- theURLfor the Client's JSON Web Key Set- Returns:
- the
ClientSettings.Builderfor further configuration - Since:
- 0.2.2
-
tokenEndpointAuthenticationSigningAlgorithm
public ClientSettings.Builder tokenEndpointAuthenticationSigningAlgorithm(org.springframework.security.oauth2.jose.jws.JwsAlgorithm authenticationSigningAlgorithm) Sets theJWSalgorithm that must be used for signing theJWTused to authenticate the Client at the Token Endpoint for theprivate_key_jwtandclient_secret_jwtauthentication methods.- Parameters:
authenticationSigningAlgorithm- theJWSalgorithm that must be used for signing theJWTused to authenticate the Client at the Token Endpoint- Returns:
- the
ClientSettings.Builderfor further configuration - Since:
- 0.2.2
-
x509CertificateSubjectDN
Sets the expected subject distinguished name associated to the clientX509Certificatereceived during client authentication when using thetls_client_authmethod.- Parameters:
x509CertificateSubjectDN- the expected subject distinguished name associated to the clientX509Certificatereceived during client authentication * @return theClientSettings.Builderfor further configuration- Returns:
- the
ClientSettings.Builderfor further configuration - Since:
- 1.3
-
build
Builds theClientSettings.- Specified by:
buildin classAbstractSettings.AbstractBuilder<ClientSettings,ClientSettings.Builder> - Returns:
- the
ClientSettings
-