tigase.auth

## Interface MechanismSelector

- All Known Implementing Classes:
    DefaultMechanismSelector

      public interface MechanismSelector

  Interface for implementing selectors of SASL mechanisms.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Collection<String>` | `filterMechanisms(Enumeration<SaslServerFactory> serverFactories, XMPPResourceConnection session)` Method filters all available SASL mechanisms from factories with current session state.
    `void` | `init(Map<String,Object> settings)` Initialize selector.

- - ### Method Detail

    - #### filterMechanisms

          Collection<String> filterMechanisms(Enumeration<SaslServerFactory> serverFactories,
                                            XMPPResourceConnection session)

      Method filters all available SASL mechanisms from factories with current session state.
      Parameters:
        `serverFactories` - SaslServerFactory enumeration.
        `session` - current session
      Returns:
        collection of all SASL mechanisms available in given session (and current XMPP Stream).

    - #### init

          void init(Map<String,Object> settings)

      Initialize selector.
      Parameters:
        `settings` - settings of SaslAuth plugin.

Copyright © 2013 Tigase. All rights reserved.