Class RememberMeLoginProperties.AutoLoginCookieProperties
java.lang.Object
com.broadleafcommerce.auth.authorization.security.rememberme.autoconfigure.RememberMeLoginProperties.AutoLoginCookieProperties
- Enclosing class:
- RememberMeLoginProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe 'Domain' attribute to set on the auto-login cookie.The name prefix to use for the auto-login cookie.The value to use for the SameSite attribute on the auto-login cookie.int
The length of the remember me series in bytes.int
The length of the remember me token in bytes.How long the cookie and its corresponding token value are considered to be valid.void
The 'Domain' attribute to set on the auto-login cookie.void
setNamePrefix
(String namePrefix) The name prefix to use for the auto-login cookie.void
setSameSiteValue
(String sameSiteValue) The value to use for the SameSite attribute on the auto-login cookie.void
setSeriesLength
(int seriesLength) The length of the remember me series in bytes.void
setTokenLength
(int tokenLength) The length of the remember me token in bytes.void
setTokenValidityDuration
(Duration tokenValidityDuration) How long the cookie and its corresponding token value are considered to be valid.
-
Constructor Details
-
AutoLoginCookieProperties
public AutoLoginCookieProperties()
-
-
Method Details
-
getNamePrefix
The name prefix to use for the auto-login cookie. This will typically be suffixed with client/server information to form the final cookie name. -
getSameSiteValue
The value to use for the SameSite attribute on the auto-login cookie. Can be "None", "Lax", or "Strict". Defaults to "Lax", which will ensure the cookie is only sent on same-origin requests to AuthenticationServices, or on top-level navigations to AuthenticationServices. -
getDomain
The 'Domain' attribute to set on the auto-login cookie. Default is null to be as restrictive as possible. -
getTokenValidityDuration
How long the cookie and its corresponding token value are considered to be valid. -
getTokenLength
public int getTokenLength()The length of the remember me token in bytes. The final length of the actual token string may be larger after base64 encoding. -
getSeriesLength
public int getSeriesLength()The length of the remember me series in bytes. The final length of the actual series string may be larger after base64 encoding. -
setNamePrefix
The name prefix to use for the auto-login cookie. This will typically be suffixed with client/server information to form the final cookie name. -
setSameSiteValue
The value to use for the SameSite attribute on the auto-login cookie. Can be "None", "Lax", or "Strict". Defaults to "Lax", which will ensure the cookie is only sent on same-origin requests to AuthenticationServices, or on top-level navigations to AuthenticationServices. -
setDomain
The 'Domain' attribute to set on the auto-login cookie. Default is null to be as restrictive as possible. -
setTokenValidityDuration
How long the cookie and its corresponding token value are considered to be valid. -
setTokenLength
public void setTokenLength(int tokenLength) The length of the remember me token in bytes. The final length of the actual token string may be larger after base64 encoding. -
setSeriesLength
public void setSeriesLength(int seriesLength) The length of the remember me series in bytes. The final length of the actual series string may be larger after base64 encoding.
-