Package org.apache.tomcat.websocket
Enum AuthenticationType
- java.lang.Object
-
- java.lang.Enum<AuthenticationType>
-
- org.apache.tomcat.websocket.AuthenticationType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AuthenticationType>
public enum AuthenticationType extends java.lang.Enum<AuthenticationType>
Defines the authentication types supported by the WebSocket client.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAuthenticateHeaderName()Returns the name of the authenticate header.java.lang.StringgetAuthorizationHeaderName()Returns the name of the authorization header.java.lang.StringgetUserNameProperty()Returns the property name for the user name.java.lang.StringgetUserPasswordProperty()Returns the property name for the user password.java.lang.StringgetUserRealmProperty()Returns the property name for the user realm.static AuthenticationTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AuthenticationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WWW
public static final AuthenticationType WWW
HTTP Basic authentication over WebSocket.
-
PROXY
public static final AuthenticationType PROXY
HTTP Proxy authentication over WebSocket.
-
-
Method Detail
-
values
public static AuthenticationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AuthenticationType c : AuthenticationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthenticationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getAuthorizationHeaderName
public java.lang.String getAuthorizationHeaderName()
Returns the name of the authorization header.- Returns:
- the authorization header name
-
getAuthenticateHeaderName
public java.lang.String getAuthenticateHeaderName()
Returns the name of the authenticate header.- Returns:
- the authenticate header name
-
getUserNameProperty
public java.lang.String getUserNameProperty()
Returns the property name for the user name.- Returns:
- the user name property name
-
getUserPasswordProperty
public java.lang.String getUserPasswordProperty()
Returns the property name for the user password.- Returns:
- the user password property name
-
getUserRealmProperty
public java.lang.String getUserRealmProperty()
Returns the property name for the user realm.- Returns:
- the user realm property name
-
-