Package rocks.xmpp.core.tls.server
Class StartTlsNegotiator
- java.lang.Object
-
- rocks.xmpp.core.tls.server.StartTlsNegotiator
-
- All Implemented Interfaces:
StreamFeatureProvider<StartTls>,StreamFeatureNegotiator<StartTls>
public final class StartTlsNegotiator extends Object implements StreamFeatureProvider<StartTls>
Negotiates STARTTLS for a TCP connection by advertising support for STARTTLS and later securing the connection.
-
-
Constructor Summary
Constructors Constructor Description StartTlsNegotiator(TcpConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StartTlscreateStreamFeature()Creates a concrete stream feature for inclusion in the stream features element after sending the response stream header.StreamNegotiationResultprocessNegotiation(Object element)
-
-
-
Constructor Detail
-
StartTlsNegotiator
public StartTlsNegotiator(TcpConnection connection)
-
-
Method Detail
-
createStreamFeature
public final StartTls createStreamFeature()
Description copied from interface:StreamFeatureProviderCreates a concrete stream feature for inclusion in the stream features element after sending the response stream header.- Specified by:
createStreamFeaturein interfaceStreamFeatureProvider<StartTls>- Returns:
- The stream feature.
-
processNegotiation
public final StreamNegotiationResult processNegotiation(Object element)
- Specified by:
processNegotiationin interfaceStreamFeatureNegotiator<StartTls>
-
-