public static enum DigestChallenge.QualityOfProtection extends java.lang.Enum<DigestChallenge.QualityOfProtection>
Enum Constant and Description |
---|
AUTH
Indicates authentication (
auth ) quality of protection. |
AUTH_INT
Indicates authentication with integrity protection (
auth-int ) quality of protection. |
UNSPECIFIED_RFC2069_COMPATIBLE
A nameless quality of protection compatible with RFC 2069.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getQopValue()
Returns the "qop-value" of the quality of protection, that is, the short name that appears
in digest messages, such as "auth" or "auth-int".
|
static DigestChallenge.QualityOfProtection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DigestChallenge.QualityOfProtection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DigestChallenge.QualityOfProtection AUTH
auth
) quality of protection.
This is the most commonly used quality of protection, specified in RFC 2617.
public static final DigestChallenge.QualityOfProtection AUTH_INT
auth-int
) quality of protection.
This quality of protection is rarely used and most servers do not implement it. It requires the client to compute a digest of the body of the message and thus provides some protection from man-in-the-middle attacks. Defined in RFC 2617.
public static final DigestChallenge.QualityOfProtection UNSPECIFIED_RFC2069_COMPATIBLE
This quality of protection is rarely used since it has been long obsoleted. It is included for backwards compatibility. It is defined in RFC 2069. It is present in RFC 2617 for backwards compatibility, but in RFC 7616 it is removed altogether.
public static DigestChallenge.QualityOfProtection[] values()
for (DigestChallenge.QualityOfProtection c : DigestChallenge.QualityOfProtection.values()) System.out.println(c);
public static DigestChallenge.QualityOfProtection valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getQopValue()