Package com.yahoo.security.token
Record Class TokenCheckHash
java.lang.Object
java.lang.Record
com.yahoo.security.token.TokenCheckHash
A token check hash represents a hash derived from a token in such a way that
distinct "audiences" for the token compute entirely different hashes even for
identical token values.
-
Constructor Summary
ConstructorsConstructorDescriptionTokenCheckHash(byte[] hashBytes) Creates an instance of aTokenCheckHashrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.byte[]Returns the value of thehashBytesrecord component.inthashCode()Returns a hash code value for this object.static TokenCheckHashstatic TokenCheckHashstatic TokenCheckHashofRawBytes(byte[] hashBytes) toString()Returns a string representation of this record class.
-
Constructor Details
-
TokenCheckHash
public TokenCheckHash(byte[] hashBytes) Creates an instance of aTokenCheckHashrecord class.- Parameters:
hashBytes- the value for thehashBytesrecord component
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toHexString
-
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. -
of
-
ofRawBytes
-
ofHex
-
hashBytes
public byte[] hashBytes()Returns the value of thehashBytesrecord component.- Returns:
- the value of the
hashBytesrecord component
-