Package co.cryptoservice.sdk
Record Class HpkeKeygenRequest
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.HpkeKeygenRequest
- Record Components:
kem- the KEM, or null for the server default
The body of
POST /v2/hpke/keygen.-
Constructor Summary
ConstructorsConstructorDescriptionHpkeKeygenRequest(HpkeKem kem) Creates an instance of aHpkeKeygenRequestrecord 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.kem()Returns the value of thekemrecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.A copy withkemreplaced.
-
Constructor Details
-
HpkeKeygenRequest
Creates an instance of aHpkeKeygenRequestrecord class.- Parameters:
kem- the value for thekemrecord component
-
-
Method Details
-
withKem
A copy withkemreplaced.- Parameters:
kem- the KEM, or null for the server default- Returns:
- the new request
-
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). -
kem
Returns the value of thekemrecord component.- Returns:
- the value of the
kemrecord component
-