tigase.jaxmpp.core.client.xmpp.modules.auth
Interface SaslMechanism

All Known Implementing Classes:
AnonymousMechanism, PlainMechanism

public interface SaslMechanism

Interface for implementing SASL mechanisms.


Method Summary
 String evaluateChallenge(String input, SessionObject sessionObject)
          Evaluating challenge received from server.
 boolean isAllowedToUse(SessionObject sessionObject)
          This method is used to check if mechanism can be used with current session.
 String name()
          Return mechanism name.
 

Method Detail

evaluateChallenge

String evaluateChallenge(String input,
                         SessionObject sessionObject)
Evaluating challenge received from server.

Parameters:
input - received data
sessionObject - current SessionObject
Returns:
calculated response

isAllowedToUse

boolean isAllowedToUse(SessionObject sessionObject)
This method is used to check if mechanism can be used with current session. For example if no username and passowrd is stored in sessionObject, then PlainMechanism can't be used.

Parameters:
sessionObject - current SessionObject
Returns:
true if mechanism can be used it current XMPP session.

name

String name()
Return mechanism name.

Returns:
mechanism name.


Copyright © 2006–2013 Tigase. All rights reserved.