public class DigestMD5 extends Object
| 构造器和说明 |
|---|
DigestMD5(MailLogger logger) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public DigestMD5(MailLogger logger)
public byte[] authClient(String host, String user, String passwd, String realm, String serverChallenge) throws IOException
host - the host nameuser - the user namepasswd - the user's passwordrealm - the security realmserverChallenge - the challenge from the serverIOException - for I/O errorspublic boolean authServer(String serverResponse) throws IOException
serverResponse - the response that was received from the serverIOException - for character conversion failuresCopyright © 2021 Oracle. All rights reserved.