Record Class SessionTokenService.SessionClaims
java.lang.Object
java.lang.Record
br.com.xadm.comum.seguranca.SessionTokenService.SessionClaims
- Record Components:
uid- identificador do usuário.email- email do usuário.name- nome do usuário.expiresAt- instante de expiração da sessão.role- papel extra carimbado na emissão (nullnuma sessão de usuário comum).
- Enclosing class:
SessionTokenService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.role()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.uid()Returns the value of theuidrecord component.
-
Constructor Details
-
SessionClaims
Sessão de usuário comum — sem papel extra. Mantém as chamadas de 4 argumentos compilando (oroleentrou na 0.7.0, depois dos consumidores).- Parameters:
uid- identificador do usuário.email- email do usuário.name- nome do usuário.expiresAt- instante de expiração da sessão.
-
SessionClaims
Creates an instance of aSessionClaimsrecord class.
-
-
Method Details
-
toString
-
hashCode
-
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). -
uid
-
email
-
name
-
expiresAt
-
role
-