org.bouncycastle.jsse.BCSSLConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bctls-lts8on Show documentation
Show all versions of bctls-lts8on Show documentation
The Bouncy Castle Java APIs for the TLS, including a JSSE provider. The APIs are designed primarily to be used in conjunction with the BC LTS provider but may also be used with other providers providing cryptographic services.
package org.bouncycastle.jsse;
/**
* A BCJSSE-specific interface providing access to extended connection-specific functionality.
*/
public interface BCSSLConnection
{
/**
* Returns the application protocol negotiated for this connection, or an empty {@code String}
* if none was negotiated. See RFC 7301 for
* details.
*
* @return The negotiated application protocol, or an empty {@code String}.
*/
String getApplicationProtocol();
/**
* Request TLS Channel Bindings for this connection. See
* RFC 5929 for details.
*
* @param channelBinding
* An IANA-registered "Channel-binding unique prefix" valid for TLS e.g.
* "tls-unique" or "tls-server-end-point".
* @return A copy of the channel binding data as a {@link byte[]}, or null if the binding is
* unavailable for this connection.
*/
byte[] getChannelBinding(String channelBinding);
/**
* 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.
* @return A String identifying this connection.
*/
String getID();
/**
* Returns the SSL session in use by this connection
* @return The {@link BCExtendedSSLSession}.
*/
BCExtendedSSLSession getSession();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy