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() |
compareTo
public 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 StreamFeature
public final int getPriority()
StreamFeature
Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.
getPriority
in class StreamFeature
public final boolean requiresRestart()
StreamFeature
If this feature requires a stream restart after it has been negotiated.
requiresRestart
in class StreamFeature
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2019 XMPP.rocks. All rights reserved.