Package co.cryptoservice.sdk
Record Class VerifyResult
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.VerifyResult
- Record Components:
algorithm- signature algorithmvalid- whether the signature is valid
What
POST /v2/verify answers: verify an Ed25519 signature.-
Constructor Summary
ConstructorsConstructorDescriptionVerifyResult(String algorithm, boolean valid) Creates an instance of aVerifyResultrecord 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.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.booleanvalid()Returns the value of thevalidrecord component.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
algorithm
Returns the value of thealgorithmrecord component.- Returns:
- the value of the
algorithmrecord component
-
valid
public boolean valid()Returns the value of thevalidrecord component.- Returns:
- the value of the
validrecord component
-