Package org.bouncycastle.jsse
Interface BCSSLEngine
public interface BCSSLEngine
A BCJSSE-specific interface to expose extended functionality on
SSLEngine
implementations.-
Method Summary
Modifier and TypeMethodDescriptionReturns an accessor for extended SSL connection data.Returns aBCSSLParameterswith properties reflecting the current configuration.voidvoidsetBCSessionToResume(BCExtendedSSLSession session) voidsetParameters(BCSSLParameters parameters) Sets parameters according to the properties in aBCSSLParameters.
-
Method Details
-
getApplicationProtocol
String getApplicationProtocol() -
getBCHandshakeApplicationProtocolSelector
BCApplicationProtocolSelector<SSLEngine> getBCHandshakeApplicationProtocolSelector() -
setBCHandshakeApplicationProtocolSelector
-
setBCSessionToResume
-
getBCHandshakeSession
BCExtendedSSLSession getBCHandshakeSession() -
getBCSession
BCExtendedSSLSession getBCSession() -
getConnection
BCSSLConnection getConnection()Returns an accessor for extended SSL connection data. UnlikeBCSSLSocket.getConnection()this method does not block until handshaking is complete. Until the initial handshake has completed, this method returnsnull.- Returns:
- A
BCSSLConnectioninstance.
-
getHandshakeApplicationProtocol
String getHandshakeApplicationProtocol() -
getParameters
BCSSLParameters getParameters()Returns aBCSSLParameterswith properties reflecting the current configuration.- Returns:
- the current
parameters
-
setParameters
Sets parameters according to the properties in aBCSSLParameters.Note that any properties set to null will be ignored, which will leave the corresponding settings unchanged.
- Parameters:
parameters- theparametersto set- Throws:
IllegalArgumentException- if the cipherSuites or protocols properties contain unsupported values
-