com.sun.mail.smtp
Class DigestMD5

java.lang.Object
  extended by com.sun.mail.smtp.DigestMD5

public class DigestMD5
extends Object

DIGEST-MD5 authentication support.

Author:
Dean Gibson, Bill Shannon

Constructor Summary
DigestMD5(PrintStream debugout)
           
 
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
 

Constructor Detail

DigestMD5

public DigestMD5(PrintStream debugout)
Method Detail

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.