Package dev.relism.flash.ext.mcp
Enum Class McpSecurity
- All Implemented Interfaces:
Serializable,Comparable<McpSecurity>,Constable
OAuth2 requirement policy for the MCP endpoint, resolved against whether
flash-ext-oidc is installed (ctx.find(OidcMiddleware.class)).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProtect the endpoint ifflash-ext-oidcis installed; otherwise run unprotected and log a warning.Never protect the endpoint, even ifflash-ext-oidcis installed elsewhere in the app.Fail fast at boot ifflash-ext-oidcis not installed — never expose an unprotected MCP endpoint. -
Method Summary
Modifier and TypeMethodDescriptionstatic McpSecurityReturns the enum constant of this class with the specified name.static McpSecurity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUIRED
Fail fast at boot ifflash-ext-oidcis not installed — never expose an unprotected MCP endpoint. -
AUTO
Protect the endpoint ifflash-ext-oidcis installed; otherwise run unprotected and log a warning. -
NONE
Never protect the endpoint, even ifflash-ext-oidcis installed elsewhere in the app.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-