Package org.bouncycastle.jsse
Interface BCSSLEngine
-
public interface BCSSLEngine
A BCJSSE-specific interface to expose extended functionality onSSLEngine
implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getApplicationProtocol()
BCApplicationProtocolSelector<javax.net.ssl.SSLEngine>
getBCHandshakeApplicationProtocolSelector()
BCExtendedSSLSession
getBCHandshakeSession()
BCExtendedSSLSession
getBCSession()
BCSSLConnection
getConnection()
Returns an accessor for extended SSL connection data.java.lang.String
getHandshakeApplicationProtocol()
BCSSLParameters
getParameters()
Returns aBCSSLParameters
with properties reflecting the current configuration.void
setBCHandshakeApplicationProtocolSelector(BCApplicationProtocolSelector<javax.net.ssl.SSLEngine> selector)
void
setBCSessionToResume(BCExtendedSSLSession session)
void
setParameters(BCSSLParameters parameters)
Sets parameters according to the properties in aBCSSLParameters
.
-
-
-
Method Detail
-
getApplicationProtocol
java.lang.String getApplicationProtocol()
-
getBCHandshakeApplicationProtocolSelector
BCApplicationProtocolSelector<javax.net.ssl.SSLEngine> getBCHandshakeApplicationProtocolSelector()
-
setBCHandshakeApplicationProtocolSelector
void setBCHandshakeApplicationProtocolSelector(BCApplicationProtocolSelector<javax.net.ssl.SSLEngine> selector)
-
setBCSessionToResume
void setBCSessionToResume(BCExtendedSSLSession session)
-
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
BCSSLConnection
instance.
-
getHandshakeApplicationProtocol
java.lang.String getHandshakeApplicationProtocol()
-
getParameters
BCSSLParameters getParameters()
Returns aBCSSLParameters
with properties reflecting the current configuration.- Returns:
- the current
parameters
-
setParameters
void setParameters(BCSSLParameters parameters)
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
- theparameters
to set- Throws:
java.lang.IllegalArgumentException
- if the cipherSuites or protocols properties contain unsupported values
-
-