com.sun.mail.smtp
Class DigestMD5
java.lang.Object
com.sun.mail.smtp.DigestMD5
public class DigestMD5
- extends Object
DIGEST-MD5 authentication support.
- Author:
- Dean Gibson, Bill Shannon
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DigestMD5
public DigestMD5(PrintStream debugout)
authClient
public byte[] authClient(String host,
String user,
String passwd,
String realm,
String serverChallenge)
throws IOException
- Return client's authentication response to server's challenge.
- Returns:
- byte array with client's response
- Throws:
IOException
authServer
public boolean authServer(String serverResponse)
throws IOException
- Allow the client to authenticate the server based on its
response.
- Returns:
- true if server is authenticated
- Throws:
IOException
Copyright © 2011 Sun Microsystems, Inc.. All Rights Reserved.