Package co.cryptoservice.sdk
Record Class OpaqueLoginFinishResult
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.OpaqueLoginFinishResult
- Record Components:
sessionKey- the session key; lowercase hex
What
POST /v2/opaque/login/finish answers: finish OPAQUE login handshake.-
Constructor Summary
ConstructorsConstructorDescriptionOpaqueLoginFinishResult(String sessionKey) Creates an instance of aOpaqueLoginFinishResultrecord 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.Returns the value of thesessionKeyrecord component.byte[]sessionKey()decoded from hex.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.
-
Constructor Details
-
OpaqueLoginFinishResult
Creates an instance of aOpaqueLoginFinishResultrecord class.- Parameters:
sessionKey- the value for thesessionKeyrecord component
-
-
Method Details
-
sessionKeyBytes
public byte[] sessionKeyBytes()sessionKey()decoded from hex.- Returns:
- the bytes, or null when
sessionKeyis 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). -
sessionKey
Returns the value of thesessionKeyrecord component.- Returns:
- the value of the
sessionKeyrecord component
-