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
ConstructorsConstructorDescriptionInternalAuthTokenAndExpiration(AuthToken authToken, long expirationTimestamp) Creates an instance of aInternalAuthTokenAndExpirationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpirationTimestamprecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InternalAuthTokenAndExpiration
Creates an instance of aInternalAuthTokenAndExpirationrecord class.- Parameters:
authToken- the value for theauthTokenrecord componentexpirationTimestamp- the value for theexpirationTimestamprecord 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 theauthTokenrecord component.- Specified by:
authTokenin interfaceAuthTokenAndExpiration- Returns:
- the value of the
authTokenrecord component
-
expirationTimestamp
public long expirationTimestamp()Returns the value of theexpirationTimestamprecord component.- Specified by:
expirationTimestampin interfaceAuthTokenAndExpiration- Returns:
- the value of the
expirationTimestamprecord component
-