public class DigestServerAuthenticationHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ALGORITHM |
static String |
DEFAULT_SCHEME |
Constructor and Description |
---|
DigestServerAuthenticationHelper()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doAuthenticateHashedPassword(Request request,
String hashedPassword)
Authenticate the inbound request.
|
boolean |
doAuthenticatePlainTextPassword(Request request,
String pass)
Authenticate the inbound request given plain text password.
|
void |
generateChallenge(HeaderFactory headerFactory,
Response response,
String realm) |
static String |
toHexString(byte[] b) |
public static final String DEFAULT_ALGORITHM
public static final String DEFAULT_SCHEME
public DigestServerAuthenticationHelper() throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static String toHexString(byte[] b)
public void generateChallenge(HeaderFactory headerFactory, Response response, String realm)
public boolean doAuthenticateHashedPassword(Request request, String hashedPassword)
request
- - the request to authenticate.hashedPassword
- -- the MD5 hashed string of username:realm:plaintext password.public boolean doAuthenticatePlainTextPassword(Request request, String pass)
request
- - the request to authenticate.pass
- -- the plain text password.Copyright © 2016. All Rights Reserved.