public final class Mechanisms extends StreamFeature
<mechanisms/> element as described in Exchange of Stream Headers and Stream Features
This class is immutable.
| Constructor and Description |
|---|
Mechanisms(Collection<String> mechanisms) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getMechanisms()
Gets the list of mechanisms supported by the server.
|
int |
getPriority()
Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.
|
boolean |
isMandatory()
Returns always true, because SASL is mandatory to negotiate.
|
String |
toString() |
compareTopublic Mechanisms(Collection<String> mechanisms)
public final List<String> getMechanisms()
public final boolean isMandatory()
The parties to a stream MUST consider SASL as mandatory-to-negotiate.
isMandatory in class StreamFeaturepublic final int getPriority()
StreamFeaturegetPriority in class StreamFeatureCopyright © 2014–2016 XMPP.rocks. All rights reserved.