public class DigestGenerator extends Object
| Constructor and Description |
|---|
DigestGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
encodePasswordInA1Format(String username,
String realm,
String password) |
String |
generateDigest(DigestResponse dr,
String password)
Computes the
response portion of a Digest authentication header. |
String |
generateDigestWithEncryptedPassword(DigestResponse dr,
String a1Md5)
Use this method if you are persisting a one way hash of the user name, password
and realm (referred to as a1md5 in the spec)
|
String |
md5(String... ss) |
public String generateDigest(DigestResponse dr, String password) throws IllegalArgumentException
response portion of a Digest authentication header. Both the server and user
agent should compute the response independently. Provided as a static method to simplify the
coding of user agents.dr - - the auth request from the clientpassword - - plain text unencoded passwordIllegalArgumentException - if the supplied qop value is unsupported.public String generateDigestWithEncryptedPassword(DigestResponse dr, String a1Md5) throws IllegalArgumentException
dr - a1Md5 - IllegalArgumentExceptionpublic String encodePasswordInA1Format(String username, String realm, String password)
Copyright © 2021 McEvoy Software Ltd. All rights reserved.