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 aAuthenticationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]Returns the value of theserverKeyrecord component.byte[]Returns the value of thestoredKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuthenticationData
Creates an instance of aAuthenticationDatarecord class.- Parameters:
algorithm- the value for thealgorithmrecord componentstoredKey- the value for thestoredKeyrecord componentserverKey- the value for theserverKeyrecord 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 thealgorithmrecord component.- Returns:
- the value of the
algorithmrecord component
-
storedKey
public byte[] storedKey()Returns the value of thestoredKeyrecord component.- Returns:
- the value of the
storedKeyrecord component
-
serverKey
public byte[] serverKey()Returns the value of theserverKeyrecord component.- Returns:
- the value of the
serverKeyrecord component
-