Class CookieProperties

java.lang.Object
swiss.trustbroker.config.dto.CookieProperties

public class CookieProperties extends Object
Cookie configuration.
See Also:
  • Constructor Details

    • CookieProperties

      public CookieProperties()
    • CookieProperties

      public CookieProperties(String name, String path, String domain, Integer maxAge, String[] values, String defaultValue, Boolean secure, Boolean httpOnly, String sameSite)
      Creates a new CookieProperties instance.
      Parameters:
      name - Cookie name
      path - Optional cookie path
      domain - Optional cookie domain
      maxAge - Optional cookie maxAge
      values - Optional cookie permitted values.
      defaultValue - Optional cookie default value.
      secure - Optional cookie secure flag.
      httpOnly - Optional cookie HTTP only flag.
      sameSite - Optional cookie sameSite flag.
  • Method Details

    • builder

    • getName

      public String getName()
      Cookie name
    • getPath

      public String getPath()
      Optional cookie path
    • getDomain

      public String getDomain()
      Optional cookie domain
    • getMaxAge

      public Integer getMaxAge()
      Optional cookie maxAge
    • getValues

      public String[] getValues()
      Optional cookie permitted values.
    • getDefaultValue

      public String getDefaultValue()
      Optional cookie default value.
    • getSecure

      public Boolean getSecure()
      Optional cookie secure flag.
    • getHttpOnly

      public Boolean getHttpOnly()
      Optional cookie HTTP only flag.
    • getSameSite

      public String getSameSite()
      Optional cookie sameSite flag.
    • setName

      public void setName(String name)
      Cookie name
    • setPath

      public void setPath(String path)
      Optional cookie path
    • setDomain

      public void setDomain(String domain)
      Optional cookie domain
    • setMaxAge

      public void setMaxAge(Integer maxAge)
      Optional cookie maxAge
    • setValues

      public void setValues(String[] values)
      Optional cookie permitted values.
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
      Optional cookie default value.
    • setSecure

      public void setSecure(Boolean secure)
      Optional cookie secure flag.
    • setHttpOnly

      public void setHttpOnly(Boolean httpOnly)
      Optional cookie HTTP only flag.
    • setSameSite

      public void setSameSite(String sameSite)
      Optional cookie sameSite flag.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object