Class AuthorizationServerProperties.OAuth2
java.lang.Object
com.broadleafcommerce.auth.user.autoconfigure.AuthorizationServerProperties.OAuth2
- Enclosing class:
- AuthorizationServerProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanCorresponds to the aud JWT claim.Base64-encoded version of the private key used to generate tokens.Base64-encoded version of the public key used to generate tokens.The max session duration for an impersonated session.Used in validation of JWT to ensure that the system that issued the token (this one) is the same as the one passed in the token.The whitelist ofGrantedAuthoritythat will be inherited when a user is impersonated by a CSR user.inthashCode()voidsetAdditionalAudiences(List<String> additionalAudiences) Corresponds to the aud JWT claim.voidsetEncodedPrivateKey(String encodedPrivateKey) Base64-encoded version of the private key used to generate tokens.voidsetEncodedPublicKey(String encodedPublicKey) Base64-encoded version of the public key used to generate tokens.voidsetImpersonatedSessionDuration(Duration impersonatedSessionDuration) The max session duration for an impersonated session.voidUsed in validation of JWT to ensure that the system that issued the token (this one) is the same as the one passed in the token.voidsetWhitelistedImpersonationAuthorities(Set<String> whitelistedImpersonationAuthorities) The whitelist ofGrantedAuthoritythat will be inherited when a user is impersonated by a CSR user.toString()
-
Constructor Details
-
OAuth2
public OAuth2()
-
-
Method Details
-
getEncodedPrivateKey
Base64-encoded version of the private key used to generate tokens. Used for encrypting both the JWT authorization tokens as well as stateless session cookies. -
getEncodedPublicKey
Base64-encoded version of the public key used to generate tokens. Used for encrypting both the JWT authorization tokens as well as stateless session cookies. -
getIssuer
Used in validation of JWT to ensure that the system that issued the token (this one) is the same as the one passed in the token. Corresponds to the iss JWT claim -
getAdditionalAudiences
Corresponds to the aud JWT claim. Usually contains the iss claim -
getImpersonatedSessionDuration
The max session duration for an impersonated session. This controls how long a CSR will have a session authenticated as the impersonated user. -
getWhitelistedImpersonationAuthorities
The whitelist ofGrantedAuthoritythat will be inherited when a user is impersonated by a CSR user. This set of authorities serves as a whitelist of the authorities that are inherited by the impersonated user session.This set only restricts the authorities permitted, but it will not result in authorities being inherited that the CSR does not originally have.
-
setEncodedPrivateKey
Base64-encoded version of the private key used to generate tokens. Used for encrypting both the JWT authorization tokens as well as stateless session cookies. -
setEncodedPublicKey
Base64-encoded version of the public key used to generate tokens. Used for encrypting both the JWT authorization tokens as well as stateless session cookies. -
setIssuer
Used in validation of JWT to ensure that the system that issued the token (this one) is the same as the one passed in the token. Corresponds to the iss JWT claim -
setAdditionalAudiences
Corresponds to the aud JWT claim. Usually contains the iss claim -
setImpersonatedSessionDuration
The max session duration for an impersonated session. This controls how long a CSR will have a session authenticated as the impersonated user. -
setWhitelistedImpersonationAuthorities
The whitelist ofGrantedAuthoritythat will be inherited when a user is impersonated by a CSR user. This set of authorities serves as a whitelist of the authorities that are inherited by the impersonated user session.This set only restricts the authorities permitted, but it will not result in authorities being inherited that the CSR does not originally have.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-