org.bouncycastle.jsse.BCSSLSocket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bctls-fips Show documentation
Show all versions of bctls-fips 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 FIPS provider. The APIs may also be used with other providers although if being used in a FIPS context it is the responsibility of the user to ensure that any other providers used are FIPS certified and used appropriately.
package org.bouncycastle.jsse;
/**
* A BCJSSE-specific interface to expose extended functionality on {@link javax.net.ssl.SSLSocket}
* implementations.
*/
public interface BCSSLSocket
{
/**
* Returns an accessor for extended SSL connection data. This method will initiate the initial
* handshake if necessary and then block until the handshake has been established. If an error
* occurs during the initial handshake, this method returns null
.
*
* @return A {@link BCSSLConnection} instance.
*/
BCSSLConnection getConnection();
/**
* Returns a {@link BCSSLParameters} with properties reflecting the current configuration.
* @return the current {@link BCSSLParameters parameters}
*/
BCSSLParameters getParameters();
/**
* Sets parameters according to the properties in a {@link BCSSLParameters}.
*
* Note that any properties set to null will be ignored, which will leave the corresponding
* settings unchanged.
*
*
* @param parameters
* the {@link BCSSLParameters parameters} to set
* @throws IllegalArgumentException
* if the cipherSuites or protocols properties contain unsupported values
*/
void setParameters(BCSSLParameters parameters);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy