Class ClientSettings
java.lang.Object
org.springframework.security.oauth2.server.authorization.settings.AbstractSettings
org.springframework.security.oauth2.server.authorization.settings.ClientSettings
- All Implemented Interfaces:
Serializable
A facility for client configuration settings.
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.springframework.security.oauth2.server.authorization.settings.AbstractSettings
AbstractSettings.AbstractBuilder<T extends AbstractSettings,B extends AbstractSettings.AbstractBuilder<T, B>> -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientSettings.Builderbuilder()Constructs a newClientSettings.Builderwith the default settings.Returns theURLfor the Client's JSON Web Key Set.Returns theJWSalgorithm that must be used for signing theJWTused to authenticate the Client at the Token Endpoint for theprivate_key_jwtandclient_secret_jwtauthentication methods.Returns the expected subject distinguished name associated to the clientX509Certificatereceived during client authentication when using thetls_client_authmethod.booleanReturnstrueif authorization consent is required when the client requests access.booleanReturnstrueif the client is required to provide a proof key challenge and verifier when performing the Authorization Code Grant flow.static ClientSettings.BuilderwithSettings(Map<String, Object> settings) Constructs a newClientSettings.Builderwith the provided settings.Methods inherited from class org.springframework.security.oauth2.server.authorization.settings.AbstractSettings
equals, getSetting, getSettings, hashCode, toString
-
Method Details
-
isRequireProofKey
public boolean isRequireProofKey()Returnstrueif the client is required to provide a proof key challenge and verifier when performing the Authorization Code Grant flow. The default isfalse.- Returns:
trueif the client is required to provide a proof key challenge and verifier,falseotherwise
-
isRequireAuthorizationConsent
public boolean isRequireAuthorizationConsent()Returnstrueif authorization consent is required when the client requests access. The default isfalse.- Returns:
trueif authorization consent is required when the client requests access,falseotherwise
-
getJwkSetUrl
Returns theURLfor the Client's JSON Web Key Set.- Returns:
- the
URLfor the Client's JSON Web Key Set
-
getTokenEndpointAuthenticationSigningAlgorithm
Returns theJWSalgorithm that must be used for signing theJWTused to authenticate the Client at the Token Endpoint for theprivate_key_jwtandclient_secret_jwtauthentication methods. -
getX509CertificateSubjectDN
Returns the expected subject distinguished name associated to the clientX509Certificatereceived during client authentication when using thetls_client_authmethod.- Returns:
- the expected subject distinguished name associated to the client
X509Certificatereceived during client authentication
-
builder
Constructs a newClientSettings.Builderwith the default settings.- Returns:
- the
ClientSettings.Builder
-
withSettings
Constructs a newClientSettings.Builderwith the provided settings.- Parameters:
settings- the settings to initialize the builder- Returns:
- the
ClientSettings.Builder
-