|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.javamail.authentication.SASLAuthenticator
public class SASLAuthenticator
Field Summary | |
---|---|
protected SaslClient |
authenticator
|
protected boolean |
complete
|
protected String |
password
|
protected String |
realm
|
protected String |
username
|
Constructor Summary | |
---|---|
SASLAuthenticator(String[] mechanisms,
Properties properties,
String protocol,
String host,
String realm,
String authorizationID,
String username,
String password)
Main constructor. |
Method Summary | |
---|---|
byte[] |
evaluateChallenge(byte[] challenge)
Evaluate a login challenge, returning the a result string that should satisfy the clallenge. |
String |
getMechanismName()
Retrieve the authenticator mechanism name. |
void |
handle(Callback[] callBacks)
|
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 realm
protected String username
protected String password
protected SaslClient authenticator
protected boolean complete
Constructor Detail |
---|
public SASLAuthenticator(String[] mechanisms, Properties properties, String protocol, String host, String realm, String authorizationID, String username, String password) throws MessagingException
username
- The login user name.password
- The login password.
MessagingException
Method Detail |
---|
public boolean hasInitialResponse()
hasInitialResponse
in interface ClientAuthenticator
public boolean isComplete()
isComplete
in interface ClientAuthenticator
public String getMechanismName()
getMechanismName
in interface ClientAuthenticator
public byte[] evaluateChallenge(byte[] challenge) throws MessagingException
evaluateChallenge
in interface ClientAuthenticator
challenge
- The decoded challenge data, as byte array.
MessagingException
public void handle(Callback[] callBacks)
handle
in interface CallbackHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |