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