|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.javamail.authentication.CramMD5Authenticator
public class CramMD5Authenticator
| Field Summary | |
|---|---|
protected boolean |
complete
|
protected String |
password
|
protected String |
username
|
| Constructor Summary | |
|---|---|
CramMD5Authenticator(String username,
String password)
Main constructor. |
|
| Method Summary | |
|---|---|
protected byte[] |
computeCramDigest(byte[] key,
byte[] input)
Compute a CRAM digest using the hmac_md5 algorithm. |
byte[] |
evaluateChallenge(byte[] challenge)
Evaluate a CRAM-MD5 login challenge, returning the a result string that should satisfy the clallenge. |
String |
getMechanismName()
Retrieve the authenticator mechanism name. |
boolean |
hasInitialResponse()
Respond to the hasInitialResponse query. |
boolean |
isComplete()
Indicate whether the challenge/response process is complete. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String username
protected String password
protected boolean complete
| Constructor Detail |
|---|
public CramMD5Authenticator(String username,
String password)
username - The login user name.password - The login password.| Method Detail |
|---|
public boolean hasInitialResponse()
hasInitialResponse in interface ClientAuthenticatorpublic boolean isComplete()
isComplete in interface ClientAuthenticatorpublic String getMechanismName()
getMechanismName in interface ClientAuthenticator
public byte[] evaluateChallenge(byte[] challenge)
throws MessagingException
evaluateChallenge in interface ClientAuthenticatorchallenge - The decoded challenge data, as a byte array.
MessagingException
protected byte[] computeCramDigest(byte[] key,
byte[] input)
throws MessagingException
key - The key (K) for the calculation.input - The encrypted text value.
NoSuchAlgorithmException
MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||