public final class TokenSettings extends AbstractSettings
AbstractSettings,
ConfigurationSettingNames.Token,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
TokenSettings.Builder
A builder for
TokenSettings. |
AbstractSettings.AbstractBuilder<T extends AbstractSettings,B extends AbstractSettings.AbstractBuilder<T,B>>| Modifier and Type | Method and Description |
|---|---|
static TokenSettings.Builder |
builder()
Constructs a new
TokenSettings.Builder with the default settings. |
OAuth2TokenFormat |
getAccessTokenFormat()
Returns the token format for an access token.
|
java.time.Duration |
getAccessTokenTimeToLive()
Returns the time-to-live for an access token.
|
org.springframework.security.oauth2.jose.jws.SignatureAlgorithm |
getIdTokenSignatureAlgorithm()
Returns the
JWS algorithm for signing the ID Token. |
java.time.Duration |
getRefreshTokenTimeToLive()
Returns the time-to-live for a refresh token.
|
boolean |
isReuseRefreshTokens()
Returns
true if refresh tokens are reused when returning the access token response,
or false if a new refresh token is issued. |
static TokenSettings.Builder |
withSettings(java.util.Map<java.lang.String,java.lang.Object> settings)
Constructs a new
TokenSettings.Builder with the provided settings. |
equals, getSetting, getSettings, hashCode, toStringpublic java.time.Duration getAccessTokenTimeToLive()
public OAuth2TokenFormat getAccessTokenFormat()
OAuth2TokenFormat.SELF_CONTAINED.public boolean isReuseRefreshTokens()
true if refresh tokens are reused when returning the access token response,
or false if a new refresh token is issued. The default is true.public java.time.Duration getRefreshTokenTimeToLive()
public org.springframework.security.oauth2.jose.jws.SignatureAlgorithm getIdTokenSignatureAlgorithm()
JWS algorithm for signing the ID Token.
The default is RS256.JWS algorithm for signing the ID Tokenpublic static TokenSettings.Builder builder()
TokenSettings.Builder with the default settings.TokenSettings.Builderpublic static TokenSettings.Builder withSettings(java.util.Map<java.lang.String,java.lang.Object> settings)
TokenSettings.Builder with the provided settings.settings - the settings to initialize the builderTokenSettings.Builder