Package co.cryptoservice.sdk
Record Class OpaqueLoginInitRequest
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.OpaqueLoginInitRequest
- Record Components:
credentialIdentifier- the credential identifierke1- the client's KE1 message as hexsuite- the OPAQUE suite, or null for the default
public record OpaqueLoginInitRequest(String credentialIdentifier, String ke1, OpaqueSuite suite)
extends Record
The body of
POST /v2/opaque/login/init.-
Constructor Summary
ConstructorsConstructorDescriptionOpaqueLoginInitRequest(String credentialIdentifier, String ke1, 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.ke1()Returns the value of theke1record component.static OpaqueLoginInitRequestA request with only the required members; the optional ones are null.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
-
OpaqueLoginInitRequest
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 identifierke1- the client's KE1 message 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
-
ke1
Returns the value of theke1record component.- Returns:
- the value of the
ke1record component
-
suite
Returns the value of thesuiterecord component.- Returns:
- the value of the
suiterecord component
-