public class RFC2617Digest extends Object implements DigestCallback
Modifier and Type | Field and Description |
---|---|
static String |
A2HASH
An explicit A2 digest
|
static String |
ALGORITHM
A string indicating a pair of algorithms used to produce the digest and a checksum.
|
static String |
AUTH_PARAM
This directive allows for future extensions.
|
static String |
CNONCE
This MUST be specified if a qop directive is sent (see above), and MUST NOT be specified if the server did not send a qop
directive in the WWW-Authenticate header field.
|
static String |
DIGEST_URI
The URI from Request-URI of the Request-Line; duplicated here because proxies are allowed to change the Request-Line in
transit.
|
static String |
METHOD
The http method type
|
static String |
NONCE
A server-specified data string which MUST be different each time a digest-challenge is sent as part of initial
authentication.
|
static String |
NONCE_COUNT
This MUST be specified if a qop directive is sent (see above), and MUST NOT be specified if the server did not send a qop
directive in the WWW-Authenticate header field.
|
static String |
QOP
Indicates what "quality of protection" the client has applied to the message.
|
static String |
REALM
String which can enable users to know which username and password to use, in case they might have different ones for
different servers.
|
static String |
USERNAME
The user's name in the specified realm.
|
Constructor and Description |
---|
RFC2617Digest() |
Modifier and Type | Method and Description |
---|---|
String |
getInfoDigest(MessageDigest digest) |
void |
init(Map options)
Pass through access to the login module options.
|
static void |
main(String[] args)
Compute the
|
void |
postDigest(MessageDigest digest)
Post-hash callout afer the password has been added to allow for content
after the password has been added.
|
void |
preDigest(MessageDigest digest)
Pre-hash callout to allow for content before the password.
|
public static final String REALM
public static final String USERNAME
public static final String DIGEST_URI
public static final String NONCE
public static final String CNONCE
public static final String NONCE_COUNT
public static final String QOP
public static final String ALGORITHM
public static final String AUTH_PARAM
public static final String METHOD
public static final String A2HASH
public void init(Map options)
DigestCallback
init
in interface DigestCallback
public void preDigest(MessageDigest digest)
DigestCallback
preDigest
in interface DigestCallback
digest
- - the security digest being used for the one-way hashpublic void postDigest(MessageDigest digest)
DigestCallback
postDigest
in interface DigestCallback
digest
- - the security digest being used for the one-way hashpublic String getInfoDigest(MessageDigest digest)
public static void main(String[] args) throws NoSuchAlgorithmException
args
- NoSuchAlgorithmException
Copyright © 2021 JBoss by Red Hat. All rights reserved.