com.sun.mail.smtp
类 DigestMD5
java.lang.Object
com.sun.mail.smtp.DigestMD5
public class DigestMD5
- extends Object
DIGEST-MD5 authentication support.
- 作者:
- Dean Gibson, Bill Shannon
| 从类 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.
- 返回:
- byte array with client's response
- 抛出:
IOException
authServer
public boolean authServer(String serverResponse)
throws IOException
- Allow the client to authenticate the server based on its
response.
- 返回:
- true if server is authenticated
- 抛出:
IOException
Copyright © 2013. All Rights Reserved.