public final class StartTls extends StreamFeature implements StreamElement
Represents the STARTTLS feature and initiates the TLS negotiation process.
In order to begin the STARTTLS negotiation, the initiating entity issues the STARTTLS command (i.e., a
<starttls/>element qualified by the ‘urn:ietf:params:xml:ns:xmpp-tls’ namespace) to instruct the receiving entity that it wishes to begin a STARTTLS negotiation to secure the stream.
This class is unconditionally thread-safe.
| Modifier and Type | Method and Description |
|---|---|
int |
getPriority()
Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.
|
boolean |
isMandatory()
Indicates, whether this feature is mandatory to negotiate.
|
boolean |
requiresRestart()
If this feature requires a stream restart after it has been negotiated.
|
void |
setMandatory(boolean mandatory) |
java.lang.String |
toString() |
compareTopublic final boolean isMandatory()
StreamFeatureIndicates, whether this feature is mandatory to negotiate. By default a feature is not mandatory. Override this method for mandatory-to-negotiate features.
isMandatory in class StreamFeaturepublic final void setMandatory(boolean mandatory)
public 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.