Record Class SaltSignaturePair
java.lang.Object
java.lang.Record
net.minestom.server.crypto.SaltSignaturePair
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSaltSignaturePair(long salt, byte[] signature) Creates an instance of aSaltSignaturePairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longsalt()Returns the value of thesaltrecord component.byte[]Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
SaltSignaturePair
public SaltSignaturePair(long salt, byte[] signature) Creates an instance of aSaltSignaturePairrecord class.- Parameters:
salt- the value for thesaltrecord componentsignature- the value for thesignaturerecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
salt
public long salt()Returns the value of thesaltrecord component.- Returns:
- the value of the
saltrecord component
-
signature
public byte[] signature()Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-