Class AuthorizationServerProperties.OAuth2
- java.lang.Object
-
- com.broadleafcommerce.auth.user.autoconfigure.AuthorizationServerProperties.OAuth2
-
- Enclosing class:
- AuthorizationServerProperties
public static class AuthorizationServerProperties.OAuth2 extends Object
-
-
Constructor Summary
Constructors Constructor Description OAuth2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)List<String>getAdditionalAudiences()Corresponds to the aud JWT claim.StringgetEncodedPrivateKey()Base64-encoded version of the private key used to generate tokens.StringgetEncodedPublicKey()Base64-encoded version of the public key used to generate tokens.DurationgetImpersonatedSessionDuration()The max session duration for an impersonated session.StringgetIssuer()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.Set<String>getWhitelistedImpersonationAuthorities()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.voidsetIssuer(String issuer)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.voidsetWhitelistedImpersonationAuthorities(Set<String> whitelistedImpersonationAuthorities)The whitelist ofGrantedAuthoritythat will be inherited when a user is impersonated by a CSR user.StringtoString()
-
-
-
Method Detail
-
getEncodedPrivateKey
public String 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
public String 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
public String 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
public List<String> getAdditionalAudiences()
Corresponds to the aud JWT claim. Usually contains the iss claim
-
getImpersonatedSessionDuration
public Duration 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
public Set<String> 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
public void setEncodedPrivateKey(String encodedPrivateKey)
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
public void setEncodedPublicKey(String encodedPublicKey)
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
public void setIssuer(String issuer)
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
public void setAdditionalAudiences(List<String> additionalAudiences)
Corresponds to the aud JWT claim. Usually contains the iss claim
-
setImpersonatedSessionDuration
public void setImpersonatedSessionDuration(Duration impersonatedSessionDuration)
The max session duration for an impersonated session. This controls how long a CSR will have a session authenticated as the impersonated user.
-
setWhitelistedImpersonationAuthorities
public void setWhitelistedImpersonationAuthorities(Set<String> whitelistedImpersonationAuthorities)
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.
-
canEqual
protected boolean canEqual(Object other)
-
-