Class ImpersonationTokenNonceProperties
java.lang.Object
com.broadleafcommerce.auth.user.autoconfigure.ImpersonationTokenNonceProperties
@ConfigurationProperties("broadleaf.auth.impersonation.token.nonce")
public class ImpersonationTokenNonceProperties
extends Object
Properties to configure impersonation token validation settings.
- Since:
- Authentication Service 2.1.4, Release Train 2.1.4, Authentication Service 2.2.0, Release Train 2.2.0
- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHow long anImpersonationTokenNonce
is valid for.boolean
Whether using "nonce" validation is enabled or not.void
setEnabled
(boolean enabled) Whether using "nonce" validation is enabled or not.void
setNonceTtl
(Duration nonceTtl) How long anImpersonationTokenNonce
is valid for.
-
Constructor Details
-
ImpersonationTokenNonceProperties
public ImpersonationTokenNonceProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether using "nonce" validation is enabled or not. -
getNonceTtl
How long anImpersonationTokenNonce
is valid for. Defaults to 15 seconds. -
setEnabled
public void setEnabled(boolean enabled) Whether using "nonce" validation is enabled or not. -
setNonceTtl
How long anImpersonationTokenNonce
is valid for. Defaults to 15 seconds.
-