Class McpProtectionKeyring
java.lang.Object
com.soklet.McpProtectionKeyring
Immutable initial MCP request-state protection keyring.
Exactly one key is initially active for sealing. Other entries are initially
verification-only. Building a server copies the complete ring, including
key material, into independent server-owned live state. Runtime rotation is
available only through that server's McpProtectionKeyringManager.
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSingle-threaded builder for an immutable initial keyring. -
Method Summary
Modifier and TypeMethodDescriptionwithActiveKey(@NonNull McpProtectionKey activeKey) Vends a builder primed with the initial active key.
-
Method Details
-
withActiveKey
public static @NonNull McpProtectionKeyring.Builder withActiveKey(@NonNull McpProtectionKey activeKey) Vends a builder primed with the initial active key.- Parameters:
activeKey- initial active key- Returns:
- keyring builder
-
getActiveKeyId
- Returns:
- non-secret active key ID
-
getVerificationKeyIds
- Returns:
- immutable verification-only key ID set
-