Package co.cryptoservice.sdk
Record Class MacVerifyResult
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.MacVerifyResult
- Record Components:
algorithm- the algorithmvalid- whether the tag matches
What
POST /v2/hmac/verify answers: verify an HMAC.-
Constructor Summary
ConstructorsConstructorDescriptionMacVerifyResult(String algorithm, boolean valid) Creates an instance of aMacVerifyResultrecord 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
-