Package io.undertow.security.impl
Enum DigestAuthorizationToken
- java.lang.Object
-
- java.lang.Enum<DigestAuthorizationToken>
-
- io.undertow.security.impl.DigestAuthorizationToken
-
- All Implemented Interfaces:
HeaderToken
,java.io.Serializable
,java.lang.Comparable<DigestAuthorizationToken>
public enum DigestAuthorizationToken extends java.lang.Enum<DigestAuthorizationToken> implements HeaderToken
Enumeration of tokens expected in a HTTP Digest 'Authorization' header.- Author:
- Darran Lofthouse
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALGORITHM
AUTH_PARAM
CNONCE
DIGEST_URI
MESSAGE_QOP
NONCE
NONCE_COUNT
OPAQUE
REALM
RESPONSE
USERNAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
boolean
isAllowQuoted()
static java.util.Map<DigestAuthorizationToken,java.lang.String>
parseHeader(java.lang.String header)
static DigestAuthorizationToken
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DigestAuthorizationToken[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USERNAME
public static final DigestAuthorizationToken USERNAME
-
REALM
public static final DigestAuthorizationToken REALM
-
NONCE
public static final DigestAuthorizationToken NONCE
-
DIGEST_URI
public static final DigestAuthorizationToken DIGEST_URI
-
RESPONSE
public static final DigestAuthorizationToken RESPONSE
-
ALGORITHM
public static final DigestAuthorizationToken ALGORITHM
-
CNONCE
public static final DigestAuthorizationToken CNONCE
-
OPAQUE
public static final DigestAuthorizationToken OPAQUE
-
MESSAGE_QOP
public static final DigestAuthorizationToken MESSAGE_QOP
-
NONCE_COUNT
public static final DigestAuthorizationToken NONCE_COUNT
-
AUTH_PARAM
public static final DigestAuthorizationToken AUTH_PARAM
-
-
Method Detail
-
values
public static DigestAuthorizationToken[] 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 (DigestAuthorizationToken c : DigestAuthorizationToken.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DigestAuthorizationToken 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
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceHeaderToken
- Returns:
- The name of the token as seen within the HTTP header.
-
isAllowQuoted
public boolean isAllowQuoted()
- Specified by:
isAllowQuoted
in interfaceHeaderToken
- Returns:
- true if this header could be a quoted header.
-
parseHeader
public static java.util.Map<DigestAuthorizationToken,java.lang.String> parseHeader(java.lang.String header)
-
-