We're updating the issue view to help you get more done. 

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)

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.

Environment

None

Acceptance Test - Entry

None

Assignee

Unassigned

Reporter

Florian Schmaus

Labels

Expected Effort

Medium

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Major
Configure