Class AuthorizationServerProperties.OAuth2
java.lang.Object
com.broadleafcommerce.auth.user.autoconfigure.AuthorizationServerProperties.OAuth2
- Enclosing class:
- AuthorizationServerProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Corresponds 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 ofGrantedAuthority
that will be inherited when a user is impersonated by a CSR user.int
hashCode()
void
setAdditionalAudiences
(List<String> additionalAudiences) Corresponds to the aud JWT claim.void
setEncodedPrivateKey
(String encodedPrivateKey) Base64-encoded version of the private key used to generate tokens.void
setEncodedPublicKey
(String encodedPublicKey) Base64-encoded version of the public key used to generate tokens.void
setImpersonatedSessionDuration
(Duration impersonatedSessionDuration) The max session duration for an impersonated session.void
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.void
setWhitelistedImpersonationAuthorities
(Set<String> whitelistedImpersonationAuthorities) The whitelist ofGrantedAuthority
that 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 ofGrantedAuthority
that 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 ofGrantedAuthority
that 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
-