Package org.bouncycastle.jsse
Interface BCSSLConnection
public interface BCSSLConnection
A BCJSSE-specific interface providing access to extended connection-specific functionality.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the application protocol negotiated for this connection, or an emptyString
if none was negotiated.byte[]
getChannelBinding
(String channelBinding) Request TLS Channel Bindings for this connection.getID()
Return a String that uniquely identifies this connection during its lifetime within the current process.Returns the SSL session in use by this connection
-
Method Details
-
getApplicationProtocol
String getApplicationProtocol()Returns the application protocol negotiated for this connection, or an emptyString
if none was negotiated. See RFC 7301 for details.- Returns:
- The negotiated application protocol, or an empty
String
.
-
getChannelBinding
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
invalid reference
byte[]
-
getID
String getID()Return a String that uniquely identifies this connection during its lifetime within the current process. It can be used e.g. for logging but its contents and format are subject to change and should not be relied upon.- Returns:
- A String identifying this connection.
-
getSession
BCExtendedSSLSession getSession()Returns the SSL session in use by this connection- Returns:
- The
BCExtendedSSLSession
.
-