Class McpTraceCorrelationKey
java.lang.Object
com.soklet.McpTraceCorrelationKey
Immutable secret key used only for pseudonymous MCP trace correlation.
Supplied bytes are defensively copied and are never exposed through the public API, diagnostic rendering, logs, metrics, fingerprints, or exception messages. Applications remain responsible for generating key material with a cryptographically secure random source and at least 256 bits of entropy.
- Author:
- Mark Allen
-
Method Summary
-
Method Details
-
fromIdAndBytes
public static @NonNull McpTraceCorrelationKey fromIdAndBytes(@NonNull String keyId, byte @NonNull [] keyMaterial) Creates a trace-correlation key from exact bytes.- Parameters:
keyId- 1-64-byte ASCII HTTP tokenkeyMaterial- at least 32 bytes of operator-generated key material- Returns:
- immutable key value
- Throws:
IllegalArgumentException- if the ID or material is invalid
-
getKeyId
-
toString
-