Package rocks.xmpp.core.tls.client
Class StartTlsManager
- java.lang.Object
-
- rocks.xmpp.core.tls.client.StartTlsManager
-
- All Implemented Interfaces:
StreamFeatureNegotiator<StartTls>
public final class StartTlsManager extends Object implements StreamFeatureNegotiator<StartTls>
Negotiates transport layer security during stream negotiation.- See Also:
- STARTTLS Negotiation
-
-
Constructor Summary
Constructors Constructor Description StartTlsManager(Session session, TcpConnection tcpConnection, ChannelEncryption channelEncryption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamNegotiationResultprocessNegotiation(Object element)Processes a feature protocol element or the feature element itself.
-
-
-
Constructor Detail
-
StartTlsManager
public StartTlsManager(Session session, TcpConnection tcpConnection, ChannelEncryption channelEncryption)
-
-
Method Detail
-
processNegotiation
public StreamNegotiationResult processNegotiation(Object element) throws StreamNegotiationException
Description copied from interface:StreamFeatureNegotiatorProcesses a feature protocol element or the feature element itself.- Specified by:
processNegotiationin interfaceStreamFeatureNegotiator<StartTls>- Parameters:
element- The XML element, which belongs to the feature negotiation, e.g.<challenge/>for SASL negotiation or the feature element itself, e.g.<mechanisms/>.- Returns:
- The result of the feature negotiation.
- Throws:
StreamNegotiationException- Any exception which might be thrown during a feature negotiation.
-
-