Record Class StateCache.CacheHolder
java.lang.Object
java.lang.Record
com.microsoft.jenkins.azuread.oauth.StateCache.CacheHolder
- Enclosing class:
- StateCache
-
Constructor Summary
ConstructorsConstructorDescriptionCacheHolder(String referrer, Long beginTime, String nonce) Creates an instance of aCacheHolderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebeginTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nonce()Returns the value of thenoncerecord component.referrer()Returns the value of thereferrerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CacheHolder
Creates an instance of aCacheHolderrecord class.- Parameters:
referrer- the value for thereferrerrecord componentbeginTime- the value for thebeginTimerecord componentnonce- the value for thenoncerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
referrer
Returns the value of thereferrerrecord component.- Returns:
- the value of the
referrerrecord component
-
beginTime
Returns the value of thebeginTimerecord component.- Returns:
- the value of the
beginTimerecord component
-
nonce
Returns the value of thenoncerecord component.- Returns:
- the value of the
noncerecord component
-