tigase.jaxmpp.core.client.xmpp.modules.auth.saslmechanisms
Class AnonymousMechanism

java.lang.Object
  extended by tigase.jaxmpp.core.client.xmpp.modules.auth.saslmechanisms.AnonymousMechanism
All Implemented Interfaces:
SaslMechanism

public class AnonymousMechanism
extends Object
implements SaslMechanism


Constructor Summary
AnonymousMechanism()
           
 
Method Summary
 String evaluateChallenge(String input, SessionObject sessionObjec)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnonymousMechanism

public AnonymousMechanism()
Method Detail

evaluateChallenge

public String evaluateChallenge(String input,
                                SessionObject sessionObjec)
Description copied from interface: SaslMechanism
Evaluating challenge received from server.

Specified by:
evaluateChallenge in interface SaslMechanism
Parameters:
input - received data
sessionObjec - current SessionObject
Returns:
calculated response

isAllowedToUse

public boolean isAllowedToUse(SessionObject sessionObject)
Description copied from interface: SaslMechanism
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.

Specified by:
isAllowedToUse in interface SaslMechanism
Parameters:
sessionObject - current SessionObject
Returns:
true if mechanism can be used it current XMPP session.

name

public String name()
Description copied from interface: SaslMechanism
Return mechanism name.

Specified by:
name in interface SaslMechanism
Returns:
mechanism name.


Copyright © 2006-2013 Tigase. All Rights Reserved.