Package org.bouncycastle.jsse
Interface BCSSLConnection
-
public interface BCSSLConnectionA BCJSSE-specific interface providing access to extended connection-specific functionality.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetApplicationProtocol()Returns the application protocol negotiated for this connection, or an emptyStringif none was negotiated.byte[]getChannelBinding(java.lang.String channelBinding)Request TLS Channel Bindings for this connection.BCExtendedSSLSessiongetSession()Returns the SSL session in use by this connection
-
-
-
Method Detail
-
getApplicationProtocol
java.lang.String getApplicationProtocol()
Returns the application protocol negotiated for this connection, or an emptyStringif none was negotiated. See RFC 7301 for details.- Returns:
- The negotiated application protocol, or an empty
String.
-
getChannelBinding
byte[] getChannelBinding(java.lang.String channelBinding)
Request TLS Channel Bindings for this connection. See RFC 5929 for details.- Parameters:
channelBinding- An IANA-registered "Channel-binding unique prefix" valid for TLS e.g. "tls-unique" or "tls-server-end-point".- Returns:
- A copy of the channel binding data as a
byte, or null if the binding is unavailable for this connection.
-
getSession
BCExtendedSSLSession getSession()
Returns the SSL session in use by this connection- Returns:
- The
BCExtendedSSLSession.
-
-