iaik.security.ssl
Interface TLSCommunication

All Superinterfaces:
SSLCommunication
All Known Subinterfaces:
TLS13Communication
All Known Implementing Classes:
SSLSocket, SSLTransport

public interface TLSCommunication
extends SSLCommunication

Extends SSLCommunication to add some methods implemented by SSLTransport and SSLSocket.

The only purpose of the class is backwards compatibility (to not break applications that implement the SSLCommunication interface.

See Also:
SSLSocket, SSLTransport

Method Summary
 ExtensionList getActiveExtensions()
          Gets the active TLS extensions of the current TLS session.
 ChannelBindings getChannelBindings()
          Gets any ChannelBindings associated with this Handshaker.
 ExtensionList getPeerExtensions()
          Gets the TLS extensions received from the peer.
 java.lang.String getPSKIdentity()
          Returns the PSK identity used for identifying the pre-shared key or null if no PSK cipher suite is used for the communication.
 
Methods inherited from interface iaik.security.ssl.SSLCommunication
close, getActiveCipherSuite, getActiveCompressionMethod, getActiveProtocolVersion, getContext, getInputStream, getOutputStream, getPeerCertificateChain, getPeerSupportedCipherSuiteList, getPeerSupportedCompressionMethods, getSession, getUseClientMode, renegotiate, setAutoHandshake, setDebugStream, setDebugStream, setUseClientMode, shutdown, startHandshake
 

Method Detail

getActiveExtensions

ExtensionList getActiveExtensions()
Gets the active TLS extensions of the current TLS session. Active extensions are a sub-set of peer extensions.

Note the extensions are cloned before returned by this method. Since cloning may be an expensive operation, you may call this method only if required.

Returns:
the active ExtensionList, or null if no extensions are used

getPeerExtensions

ExtensionList getPeerExtensions()
Gets the TLS extensions received from the peer.

Note the extensions are cloned before returned by this method. Since cloning may be an expensive operation, you may call this method only if required.

Returns:
the ExtensionList received from the peer, or null if the peer did not sent any extensions

getPSKIdentity

java.lang.String getPSKIdentity()
Returns the PSK identity used for identifying the pre-shared key or null if no PSK cipher suite is used for the communication.

Returns:
the PSK identity, or null if no PSK cipher suite is used for the communication

getChannelBindings

ChannelBindings getChannelBindings()
Gets any ChannelBindings associated with this Handshaker.

Returns:
the ChannelBindings associated with this Handshaker; maybe null if no channel bindings are available (e.g. if the application does not have announced interest in channel bindings.

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

iSaSiLk 6.0, (c) 2002 IAIK, (c) 2003 - 2015 SIC