Class PqcHandshakeResult
Object
PqcHandshakeResult
Immutable value object returned by PQC hybrid handshake endpoints.
It bundles the freshly negotiated AES-256 session key together with the
server-allocated
sessionId
.
Security considerations
- The byte array is returned by reference;
callers should immediately copy it if longer retention is required, then
overwrite the original with zeroes, e.g.
Arrays.fill(result.getAesKey(), (byte)0);
. sessionId
is safe to log, butaesKey
is not.
- Since:
- 1.0
- Author:
- Javier Galindo
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PqcHandshakeResult
-
-
Method Details
-
getAesKey
public byte[] getAesKey()Returns a direct reference to the AES-256 key bytes. -
getSessionId
Returns the opaque session identifier for follow-up calls. -
toString
-
equals
-
hashCode
-