Package org.localify.auth.dto.web
Record Class AppleJwtClaims
java.lang.Object
java.lang.Record
org.localify.auth.dto.web.AppleJwtClaims
- Record Components:
subject- The subject of the token (user ID).email- The user's email address.emailVerified- Whether the email address has been verified by Apple.
Represents the claims from an Apple JWT.
-
Constructor Summary
ConstructorsConstructorDescriptionAppleJwtClaims(String subject, String email, boolean emailVerified) Creates an instance of aAppleJwtClaimsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionemail()Returns the value of theemailrecord component.booleanReturns the value of theemailVerifiedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AppleJwtClaims
Creates an instance of aAppleJwtClaimsrecord class.- Parameters:
subject- the value for thesubjectrecord componentemail- the value for theemailrecord componentemailVerified- the value for theemailVerifiedrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
emailVerified
public boolean emailVerified()Returns the value of theemailVerifiedrecord component.- Returns:
- the value of the
emailVerifiedrecord component
-