Package co.cryptoservice.sdk
Record Class StreamVerifyResult
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.StreamVerifyResult
- Record Components:
allValid- whether every signature is validcount- number of itemsresults- the resultsvalidCount- number of valid signatures
public record StreamVerifyResult(boolean allValid, int count, List<StreamVerifyOutcome> results, int validCount)
extends Record
What
POST /v2/stream/verify answers: batch verify digital signatures.-
Constructor Summary
ConstructorsConstructorDescriptionStreamVerifyResult(boolean allValid, int count, List<StreamVerifyOutcome> results, int validCount) Creates an instance of aStreamVerifyResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanallValid()Returns the value of theallValidrecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.results()Returns the value of theresultsrecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.intReturns the value of thevalidCountrecord component.
-
Constructor Details
-
StreamVerifyResult
public StreamVerifyResult(boolean allValid, int count, List<StreamVerifyOutcome> results, int validCount) Creates an instance of aStreamVerifyResultrecord class.- Parameters:
allValid- the value for theallValidrecord componentcount- the value for thecountrecord componentresults- the value for theresultsrecord componentvalidCount- the value for thevalidCountrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
allValid
public boolean allValid()Returns the value of theallValidrecord component.- Returns:
- the value of the
allValidrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
results
Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-
validCount
public int validCount()Returns the value of thevalidCountrecord component.- Returns:
- the value of the
validCountrecord component
-