Package tigase.auth

## Interface MechanismSelector

- All Known Implementing Classes:
    `DefaultMechanismSelector`

      public interface MechanismSelector

  Interface for implementing selectors of SASL mechanisms.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.util.Collection<java.lang.String>` | `filterMechanisms​(java.util.Enumeration<javax.security.sasl.SaslServerFactory> serverFactories, XMPPResourceConnection session)` | Method filters all available SASL mechanisms from `factories` with current `session` state.

- - ### Method Detail

    - #### filterMechanisms

          java.util.Collection<java.lang.String> filterMechanisms​(java.util.Enumeration<javax.security.sasl.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).