Enum Class McpServerAuthTypeEnum
- All Implemented Interfaces:
Serializable
,Comparable<McpServerAuthTypeEnum>
,Constable
MCP Server authentication type enumeration
Represents different authentication methods for MCP servers
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAPI Key authenticationBasic authenticationBearer token authenticationCustom authenticationHMAC signature authenticationJWT (JSON Web Token) authenticationMutual TLS authenticationNo authentication requiredOAuth 2.0 authenticationSession-based authentication -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
McpServerAuthTypeEnum
(String displayName, String description) -
Method Summary
Modifier and TypeMethodDescriptionstatic McpServerAuthTypeEnum
fromString
(String authType) Get enum from string value (case insensitive)Get the authorization scheme prefixGet the typical header name for this authentication typeboolean
isSecure()
Check if authentication is secureboolean
Check if authentication requires certificatesboolean
Check if authentication requires username/passwordboolean
Check if authentication requires custom headersboolean
Check if authentication requires a tokenstatic McpServerAuthTypeEnum
Returns the enum constant of this class with the specified name.static McpServerAuthTypeEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No authentication required -
BEARER
Bearer token authentication -
BASIC
Basic authentication -
API_KEY
API Key authentication -
OAUTH2
OAuth 2.0 authentication -
JWT
JWT (JSON Web Token) authentication -
CUSTOM
Custom authentication -
MTLS
Mutual TLS authentication -
HMAC
HMAC signature authentication -
SESSION
Session-based authentication
-
-
Field Details
-
displayName
-
description
-
-
Constructor Details
-
McpServerAuthTypeEnum
-
-
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
-
getDisplayName
-
getDescription
-
fromString
Get enum from string value (case insensitive) -
requiresToken
public boolean requiresToken()Check if authentication requires a token -
requiresCredentials
public boolean requiresCredentials()Check if authentication requires username/password -
requiresCertificate
public boolean requiresCertificate()Check if authentication requires certificates -
requiresCustomHeaders
public boolean requiresCustomHeaders()Check if authentication requires custom headers -
isSecure
public boolean isSecure()Check if authentication is secure -
getTypicalHeaderName
Get the typical header name for this authentication type -
getSchemePrefix
Get the authorization scheme prefix
-