public class DigestMD5 extends Object
| Constructor and Description |
|---|
DigestMD5(MailLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
authClient(String host,
String user,
String passwd,
String realm,
String serverChallenge)
Return client's authentication response to server's challenge.
|
boolean |
authServer(String serverResponse)
Allow the client to authenticate the server based on its
response.
|
public DigestMD5(MailLogger logger)
public byte[] authClient(String host, String user, String passwd, String realm, String serverChallenge) throws IOException
host - the host nameuser - the user namepasswd - the user's passwordrealm - the security realmserverChallenge - the challenge from the serverIOException - for I/O errorspublic boolean authServer(String serverResponse) throws IOException
serverResponse - the response that was received from the serverIOException - for character conversion failuresCopyright © 2017 Oracle. All rights reserved.