Uploaded image for project: 'Smack'
  1. Smack
  2. SMACK-880

Add API for SASL mechanism to check if they should be used for the concrete connection (e.g. disallow PLAIN over insecured connections per default)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.3.4
    • Fix Version/s: 4.4.0
    • Component/s: Core
    • Labels:
    • Expected Effort:
      Medium

      Description

      Add
      SASLMechanism.isApplicableFor(XMPPConnection)

      which, for example, would return 'false' for PLAIN if the connection is not secured. But make that behavior configurable (via static SASL mechanism interface or via ConnectionConfiguration?).

      Also add an explaination if authentication fails to the SmackSaslException that some mechanisms where not applicable for the connection at a given time. This probably means that isApplicableFor may returns a String explaining the reason why the mechanism is not applicable.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            flow Florian Schmaus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: