Class RememberMeLoginProperties
java.lang.Object
com.broadleafcommerce.auth.authorization.security.rememberme.autoconfigure.RememberMeLoginProperties
@ConfigurationProperties(prefix="broadleaf.auth.login.remember-me")
public class RememberMeLoginProperties
extends Object
Properties configuring 'Remember Me' functionality for login.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProperties for the 'remember-me' auto-login cookie.Properties configuring components that return indicators on whether 'remember me' is available.Properties configuring the Remember Me continuation endpoint behavior.The name of the parameter submitted during login indicating the user's preference on whether this session should be remembered.boolean
Whether to enable features supporting 'remember me' login functionality.boolean
Whether to globally invalidate/revoke all of a user's 'remember-me' tokens (regardless of client, device, etc) when they log out.void
setAutoLoginCookie
(RememberMeLoginProperties.AutoLoginCookieProperties autoLoginCookie) Properties for the 'remember-me' auto-login cookie.void
setAvailabilityIndicator
(RememberMeLoginProperties.AvailabilityIndicatorProperties availabilityIndicator) Properties configuring components that return indicators on whether 'remember me' is available.void
setContinuationEndpoint
(RememberMeLoginProperties.RememberMeContinuationEndpointProperties continuationEndpoint) Properties configuring the Remember Me continuation endpoint behavior.void
setEnabled
(boolean enabled) Whether to enable features supporting 'remember me' login functionality.void
setGloballyRevokeAllUserTokensOnLogout
(boolean globallyRevokeAllUserTokensOnLogout) Whether to globally invalidate/revoke all of a user's 'remember-me' tokens (regardless of client, device, etc) when they log out.void
setLoginFormParameterName
(String loginFormParameterName) The name of the parameter submitted during login indicating the user's preference on whether this session should be remembered.
-
Constructor Details
-
RememberMeLoginProperties
public RememberMeLoginProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether to enable features supporting 'remember me' login functionality. This is disabled by default. -
getLoginFormParameterName
The name of the parameter submitted during login indicating the user's preference on whether this session should be remembered. -
isGloballyRevokeAllUserTokensOnLogout
public boolean isGloballyRevokeAllUserTokensOnLogout()Whether to globally invalidate/revoke all of a user's 'remember-me' tokens (regardless of client, device, etc) when they log out. Setting this to false is usually preferable to preserve distinct 'remember-me' states in each client/device they are logged into. For example, logging out on a computer shouldn't cause the user to be forgotten on their mobile phone. However, in some scenarios it may be desirable to set this to true, in which case logging out anywhere will revoke 'remember me' everywhere. -
getContinuationEndpoint
Properties configuring the Remember Me continuation endpoint behavior. -
getAutoLoginCookie
Properties for the 'remember-me' auto-login cookie. -
getAvailabilityIndicator
Properties configuring components that return indicators on whether 'remember me' is available. -
setEnabled
public void setEnabled(boolean enabled) Whether to enable features supporting 'remember me' login functionality. This is disabled by default. -
setLoginFormParameterName
The name of the parameter submitted during login indicating the user's preference on whether this session should be remembered. -
setGloballyRevokeAllUserTokensOnLogout
public void setGloballyRevokeAllUserTokensOnLogout(boolean globallyRevokeAllUserTokensOnLogout) Whether to globally invalidate/revoke all of a user's 'remember-me' tokens (regardless of client, device, etc) when they log out. Setting this to false is usually preferable to preserve distinct 'remember-me' states in each client/device they are logged into. For example, logging out on a computer shouldn't cause the user to be forgotten on their mobile phone. However, in some scenarios it may be desirable to set this to true, in which case logging out anywhere will revoke 'remember me' everywhere. -
setContinuationEndpoint
public void setContinuationEndpoint(RememberMeLoginProperties.RememberMeContinuationEndpointProperties continuationEndpoint) Properties configuring the Remember Me continuation endpoint behavior. -
setAutoLoginCookie
Properties for the 'remember-me' auto-login cookie. -
setAvailabilityIndicator
public void setAvailabilityIndicator(RememberMeLoginProperties.AvailabilityIndicatorProperties availabilityIndicator) Properties configuring components that return indicators on whether 'remember me' is available.
-