Package org.keycloak.models.session
Record Class RevokedToken
java.lang.Object
java.lang.Record
org.keycloak.models.session.RevokedToken
- Author:
- Alexander Schwartz
-
Constructor Summary
ConstructorDescriptionRevokedToken
(String tokenId, long expiry) Creates an instance of aRevokedToken
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
expiry()
Returns the value of theexpiry
record component.final int
hashCode()
Returns a hash code value for this object.tokenId()
Returns the value of thetokenId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RevokedToken
Creates an instance of aRevokedToken
record class.- Parameters:
tokenId
- the value for thetokenId
record componentexpiry
- the value for theexpiry
record 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 '=='. -
tokenId
Returns the value of thetokenId
record component.- Returns:
- the value of the
tokenId
record component
-
expiry
public long expiry()Returns the value of theexpiry
record component.- Returns:
- the value of the
expiry
record component
-