Class RememberMeLoginProperties.AutoLoginCookieProperties

java.lang.Object
com.broadleafcommerce.auth.authorization.security.rememberme.autoconfigure.RememberMeLoginProperties.AutoLoginCookieProperties
Enclosing class:
RememberMeLoginProperties

public static class RememberMeLoginProperties.AutoLoginCookieProperties extends Object
  • Constructor Details

    • AutoLoginCookieProperties

      public AutoLoginCookieProperties()
  • Method Details

    • getNamePrefix

      public String 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

      public String 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

      public String getDomain()
      The 'Domain' attribute to set on the auto-login cookie. Default is null to be as restrictive as possible.
    • getTokenValidityDuration

      public Duration 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

      public void setNamePrefix(String namePrefix)
      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

      public void setSameSiteValue(String sameSiteValue)
      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

      public void setDomain(String domain)
      The 'Domain' attribute to set on the auto-login cookie. Default is null to be as restrictive as possible.
    • setTokenValidityDuration

      public void setTokenValidityDuration(Duration tokenValidityDuration)
      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.