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 SummaryConstructorsConstructorDescriptionInternalAuthTokenAndExpiration(AuthToken authToken, long expirationTimestamp) Creates an instance of aInternalAuthTokenAndExpirationrecord class.
- 
Method SummaryModifier 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- 
InternalAuthTokenAndExpirationCreates an instance of aInternalAuthTokenAndExpirationrecord class.- Parameters:
- authToken- the value for the- authTokenrecord component
- expirationTimestamp- the value for the- expirationTimestamprecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
authTokenReturns the value of theauthTokenrecord component.- Specified by:
- authTokenin interface- AuthTokenAndExpiration
- Returns:
- the value of the authTokenrecord component
 
- 
expirationTimestamppublic long expirationTimestamp()Returns the value of theexpirationTimestamprecord component.- Specified by:
- expirationTimestampin interface- AuthTokenAndExpiration
- Returns:
- the value of the expirationTimestamprecord component
 
 
-