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

构造方法摘要
DigestMD5(PrintStream debugout)
           
 
方法摘要
 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.
 
从类 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.