Module org.neo4j.driver
Record Class InternalAuthTokenAndExpiration
java.lang.Object
java.lang.Record
org.neo4j.driver.internal.security.InternalAuthTokenAndExpiration
- All Implemented Interfaces:
AuthTokenAndExpiration
public record InternalAuthTokenAndExpiration(AuthToken authToken, long expirationTimestamp)
extends Record
implements AuthTokenAndExpiration
-
Constructor Summary
ConstructorDescriptionInternalAuthTokenAndExpiration
(AuthToken authToken, long expirationTimestamp) Creates an instance of aInternalAuthTokenAndExpiration
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthToken
record component.final boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theexpirationTimestamp
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
InternalAuthTokenAndExpiration
Creates an instance of aInternalAuthTokenAndExpiration
record class.- Parameters:
authToken
- the value for theauthToken
record componentexpirationTimestamp
- the value for theexpirationTimestamp
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 '=='. -
authToken
Returns the value of theauthToken
record component.- Specified by:
authToken
in interfaceAuthTokenAndExpiration
- Returns:
- the value of the
authToken
record component
-
expirationTimestamp
public long expirationTimestamp()Returns the value of theexpirationTimestamp
record component.- Specified by:
expirationTimestamp
in interfaceAuthTokenAndExpiration
- Returns:
- the value of the
expirationTimestamp
record component
-