Interface McpSubscriptionAuthorization
- All Known Implementing Classes:
McpSubscriptionAuthorization.Allowed, McpSubscriptionAuthorization.Denied
@ThreadSafe
public sealed interface McpSubscriptionAuthorization
permits McpSubscriptionAuthorization.Allowed, McpSubscriptionAuthorization.Denied
Immutable result of one MCP subscription authorization check. The carrier is
safe for concurrent access; an application remains responsible for the
thread safety of an opaque application-context object stored in an allowed
result.
McpSubscriptionAuthorization.Allowed and McpSubscriptionAuthorization.Denied are the exhaustive result domain.
This is a closed domain; exhaustive switches are supported, and any new alternative requires an explicit reviewed contract amendment.
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classAn allowed subscription authorization with an application-requested expiration and optional replacement application context.static final classA data-free denied subscription authorization. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionReturns the shared denied authorization result.
-
Method Details
-
deniedInstance
Returns the shared denied authorization result.- Returns:
- shared denied result
-