Package co.cryptoservice.sdk
Record Class OpaqueLoginInitResult
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.OpaqueLoginInitResult
- Record Components:
ke2- the serialized KE2 message; lowercase hexsessionId- single-use login session identifier; pass it to /v2/opaque/login/finish
What
POST /v2/opaque/login/init answers: initiate OPAQUE login handshake.-
Constructor Summary
ConstructorsConstructorDescriptionOpaqueLoginInitResult(String ke2, String sessionId) Creates an instance of aOpaqueLoginInitResultrecord 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.ke2()Returns the value of theke2record component.byte[]ke2Bytes()ke2()decoded from hex.Returns the value of thesessionIdrecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.
-
Constructor Details
-
Method Details
-
ke2Bytes
public byte[] ke2Bytes()ke2()decoded from hex.- Returns:
- the bytes, or null when
ke2is absent - Throws:
IllegalArgumentException- when the server sent malformed hex
-
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). -
ke2
Returns the value of theke2record component.- Returns:
- the value of the
ke2record component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-