public final class Mechanisms extends StreamFeature
Represents the <mechanisms/> element as described in Exchange of Stream Headers and Stream Features
This class is immutable.
| Constructor and Description |
|---|
Mechanisms(java.util.Collection<java.lang.String> mechanisms) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.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.
|
boolean |
requiresRestart()
If this feature requires a stream restart after it has been negotiated.
|
java.lang.String |
toString() |
compareTopublic final java.util.List<java.lang.String> getMechanisms()
Gets the list of mechanisms supported by the server.
public final boolean isMandatory()
Returns always true, because SASL is mandatory to negotiate.
The parties to a stream MUST consider SASL as mandatory-to-negotiate.
isMandatory in class StreamFeaturepublic final int getPriority()
StreamFeatureGets the priority of the feature, i.e. when it will be negotiated during feature negotiation.
getPriority in class StreamFeaturepublic final boolean requiresRestart()
StreamFeatureIf this feature requires a stream restart after it has been negotiated.
requiresRestart in class StreamFeaturepublic final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2019 XMPP.rocks. All rights reserved.