|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smack.sasl.SASLMechanism
org.jivesoftware.smack.sasl.SASLGSSAPIMechanism
public class SASLGSSAPIMechanism
Implementation of the SASL GSSAPI mechanisn
Constructor Summary | |
---|---|
SASLGSSAPIMechanism(SASLAuthentication saslAuthentication)
|
Method Summary | |
---|---|
void |
authenticate(String username,
String host,
String password)
Builds and sends the auth stanza to the server. |
void |
challengeReceived(String challenge)
The server is challenging the SASL mechanism for the stanza he just sent. |
protected String |
getAuthenticationText(String username,
String host,
String password)
Returns the authentication text to include in the initial auth stanza or null if nothing should be added. |
protected String |
getChallengeResponse(byte[] bytes)
Returns the response text to send answering the challenge sent by the server. |
protected String |
getName()
Returns the common name of the SASL mechanism. |
Methods inherited from class org.jivesoftware.smack.sasl.SASLMechanism |
---|
getSASLAuthentication |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SASLGSSAPIMechanism(SASLAuthentication saslAuthentication)
Method Detail |
---|
protected String getName()
SASLMechanism
getName
in class SASLMechanism
public void authenticate(String username, String host, String password) throws IOException
authenticate
in class SASLMechanism
username
- the username of the user being authenticated.host
- the hostname where the user account resides.password
- the password of the user (ignored for GSSAPI)
IOException
- If a network error occures while authenticating.protected String getAuthenticationText(String username, String host, String password)
SASLMechanism
getAuthenticationText
in class SASLMechanism
username
- the username of the user being authenticated.host
- the hostname where the user account resides.password
- the password of the user.
public void challengeReceived(String challenge) throws IOException
challengeReceived
in class SASLMechanism
challenge
- a base64 encoded string representing the challenge.
IOException
- if an exception sending the response occurs.protected String getChallengeResponse(byte[] bytes)
SASLMechanism
getChallengeResponse
in class SASLMechanism
bytes
- the challenge sent by the server.
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |