Record Class CookieService.CookieConfig
java.lang.Object
java.lang.Record
ch.tocco.nice2.web.core.impl.servlet.CookieService.CookieConfig
- Enclosing class:
CookieService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebusinessUnit
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thejwtSecret
record component.Returns the value of theoriginDomain
record component.roles()
Returns the value of theroles
record component.Returns the value of thesessionUuid
record 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 aCookieConfig
record class.- Parameters:
sessionUuid
- the value for thesessionUuid
record componentjwtSecret
- the value for thejwtSecret
record componentroles
- the value for theroles
record componentoriginDomain
- the value for theoriginDomain
record componentbusinessUnit
- the value for thebusinessUnit
record 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 thesessionUuid
record component.- Returns:
- the value of the
sessionUuid
record component
-
jwtSecret
Returns the value of thejwtSecret
record component.- Returns:
- the value of the
jwtSecret
record component
-
roles
Returns the value of theroles
record component.- Returns:
- the value of the
roles
record component
-
originDomain
Returns the value of theoriginDomain
record component.- Returns:
- the value of the
originDomain
record component
-
businessUnit
Returns the value of thebusinessUnit
record component.- Returns:
- the value of the
businessUnit
record component
-