Package co.cryptoservice.sdk
Record Class HybridDecapsulateResult
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.HybridDecapsulateResult
- Record Components:
algorithm- hybrid KEM algorithmcombiner- shared-secret combiner- the 32-byte shared secret; lowercase hex
public record HybridDecapsulateResult(String algorithm, String combiner, String sharedSecret)
extends Record
What
POST /v2/pq/hybrid/decapsulate answers: hybrid decapsulate (X25519 + ML-KEM-768).-
Constructor Summary
ConstructorsConstructorDescriptionHybridDecapsulateResult(String algorithm, String combiner, String sharedSecret) Creates an instance of aHybridDecapsulateResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.combiner()Returns the value of thecombinerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesharedSecretrecord component.byte[]sharedSecret()decoded from hex.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.
-
Constructor Details
-
HybridDecapsulateResult
Creates an instance of aHybridDecapsulateResultrecord class.- Parameters:
algorithm- the value for thealgorithmrecord componentcombiner- the value for thecombinerrecord componentsharedSecret- the value for thesharedSecretrecord 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 withObjects::equals(Object,Object). -
algorithm
Returns the value of thealgorithmrecord component.- Returns:
- the value of the
algorithmrecord component
-
combiner
Returns the value of thecombinerrecord component.- Returns:
- the value of the
combinerrecord component