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() |
compareTo
public final boolean isMandatory()
StreamFeature
Indicates, 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 StreamFeature
public final void setMandatory(boolean mandatory)
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.