Package co.cryptoservice.sdk
Record Class OpaqueRegisterInitRequest
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.OpaqueRegisterInitRequest
- Record Components:
credentialIdentifier- the credential identifierrequest- the client's registration request as hexsuite- the OPAQUE suite, or null for the default
public record OpaqueRegisterInitRequest(String credentialIdentifier, String request, OpaqueSuite suite)
extends Record
The body of
POST /v2/opaque/register/init.-
Constructor Summary
ConstructorsConstructorDescriptionOpaqueRegisterInitRequest(String credentialIdentifier, String request, OpaqueSuite suite) Checks that every required member is present. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecredentialIdentifierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static OpaqueRegisterInitRequestA request with only the required members; the optional ones are null.request()Returns the value of therequestrecord component.suite()Returns the value of thesuiterecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.withSuite(OpaqueSuite suite) A copy withsuitereplaced.
-
Constructor Details
-
OpaqueRegisterInitRequest
Checks that every required member is present.- Throws:
NullPointerException- when a required member is null
-
-
Method Details
-
of
A request with only the required members; the optional ones are null.- Parameters:
credentialIdentifier- the credential identifierrequest- the client's registration request as hex- Returns:
- the request
-
withSuite
A copy withsuitereplaced.- Parameters:
suite- the OPAQUE suite, or null for the 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). -
credentialIdentifier
Returns the value of thecredentialIdentifierrecord component.- Returns:
- the value of the
credentialIdentifierrecord component
-
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
suite
Returns the value of thesuiterecord component.- Returns:
- the value of the
suiterecord component
-