Record Class CookieService.CookieConfig
java.lang.Object
java.lang.Record
ch.tocco.nice2.web.core.impl.servlet.CookieService.CookieConfig
- Enclosing class:
CookieService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebusinessUnitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thejwtSecretrecord component.Returns the value of theoriginDomainrecord component.roles()Returns the value of therolesrecord component.Returns the value of thesessionUuidrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
CookieConfig
public CookieConfig(UUID sessionUuid, String jwtSecret, List<String> roles, String originDomain, String businessUnit) Creates an instance of aCookieConfigrecord class.- Parameters:
sessionUuid- the value for thesessionUuidrecord componentjwtSecret- the value for thejwtSecretrecord componentroles- the value for therolesrecord componentoriginDomain- the value for theoriginDomainrecord componentbusinessUnit- the value for thebusinessUnitrecord component
-
-
Method Details
-
isOriginDomainSet
public boolean isOriginDomainSet() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
sessionUuid
Returns the value of thesessionUuidrecord component.- Returns:
- the value of the
sessionUuidrecord component
-
jwtSecret
Returns the value of thejwtSecretrecord component.- Returns:
- the value of the
jwtSecretrecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-
originDomain
Returns the value of theoriginDomainrecord component.- Returns:
- the value of the
originDomainrecord component
-
businessUnit
Returns the value of thebusinessUnitrecord component.- Returns:
- the value of the
businessUnitrecord component
-