Package co.cryptoservice.sdk
Record Class PasswordVerifyResult
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.PasswordVerifyResult
- Record Components:
valid- whether the password matches
What
POST /v2/password/verify answers: verify a password against an Argon2id hash.-
Constructor Summary
ConstructorsConstructorDescriptionPasswordVerifyResult(boolean valid) Creates an instance of aPasswordVerifyResultrecord 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.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.booleanvalid()Returns the value of thevalidrecord component.
-
Constructor Details
-
PasswordVerifyResult
public PasswordVerifyResult(boolean valid) Creates an instance of aPasswordVerifyResultrecord class.- Parameters:
valid- the value for thevalidrecord component
-
-
Method Details
-
toString
Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted. -
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 with '=='. -
valid
public boolean valid()Returns the value of thevalidrecord component.- Returns:
- the value of the
validrecord component
-