| java.lang.Object |
| ↳ |
com.google.code.com.sun.mail.smtp.DigestMD5 |
Class Overview
DIGEST-MD5 authentication support.
Summary
| Public Constructors |
|
|
DigestMD5(PrintStream debugout)
|
| Public Methods |
|
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.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
private
String
clientResponse
private
PrintStream
debugout
private
static
char[]
digits
private
MessageDigest
md5
Public Constructors
public
DigestMD5
(PrintStream debugout)
Public Methods
public
byte[]
authClient
(String host, String user, String passwd, String realm, String serverChallenge)
Return client's authentication response to server's challenge.
Parameters
| host
| |
| user
| |
| passwd
| |
| realm
| |
| serverChallenge
| |
Returns
- byte array with client's response
public
boolean
authServer
(String serverResponse)
Allow the client to authenticate the server based on its
response.
Returns
- true if server is authenticated