public final class StartTlsManager extends ClientStreamFeatureNegotiator<StartTls>
Negotiates transport layer security during stream negotiation.
Constructor and Description |
---|
StartTlsManager(XmppSession xmppSession,
TcpBinding tcpBinding,
ChannelEncryption channelEncryption) |
Modifier and Type | Method and Description |
---|---|
boolean |
canProcess(java.lang.Object element)
Checks, whether the element can be processed by the feature negotiator.
|
StreamNegotiationResult |
processNegotiation(java.lang.Object element)
Processes a feature protocol element or the feature element itself.
|
getFeatureClass
isEnabled, setEnabled
public StartTlsManager(XmppSession xmppSession, TcpBinding tcpBinding, ChannelEncryption channelEncryption)
public StreamNegotiationResult processNegotiation(java.lang.Object element) throws StreamNegotiationException
StreamFeatureNegotiator
Processes a feature protocol element or the feature element itself.
element
- The XML element, which belongs to the feature negotiation, e.g. <challenge/>
for SASL negotiation or the feature element itself, e.g. <mechanisms/>
.StreamNegotiationException
- Any exception which might be thrown during a feature negotiation.public boolean canProcess(java.lang.Object element)
StreamFeatureNegotiator
Checks, whether the element can be processed by the feature negotiator.
element
- The feature protocol element, e.g. <challenge/>
. The element is never the feature element itself, e.g. <mechanisms/>
, which is advertised in the <stream:features/>
element.Copyright © 2014–2019 XMPP.rocks. All rights reserved.