Package tigase.auth.mechanisms
Record Class SCRAMHelper.AuthenticationData
java.lang.Object
java.lang.Record
tigase.auth.mechanisms.SCRAMHelper.AuthenticationData
- Enclosing class:
SCRAMHelper
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationData
(String algorithm, byte[] storedKey, byte[] serverKey) Creates an instance of aAuthenticationData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithm
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.byte[]
Returns the value of theserverKey
record component.byte[]
Returns the value of thestoredKey
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AuthenticationData
Creates an instance of aAuthenticationData
record class.- Parameters:
algorithm
- the value for thealgorithm
record componentstoredKey
- the value for thestoredKey
record componentserverKey
- the value for theserverKey
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
algorithm
Returns the value of thealgorithm
record component.- Returns:
- the value of the
algorithm
record component
-
storedKey
public byte[] storedKey()Returns the value of thestoredKey
record component.- Returns:
- the value of the
storedKey
record component
-
serverKey
public byte[] serverKey()Returns the value of theserverKey
record component.- Returns:
- the value of the
serverKey
record component
-