Interface BCSSLContext
public interface BCSSLContext
A BCJSSE-specific interface to expose extended functionality of a
SSLContext.
An instance describes a single initialization of the SSLContext: if the SSLContext is subsequently
re-initialized, an instance obtained earlier continues to describe the earlier initialization. Use
ContextUtil.getBCSSLContext(javax.net.ssl.SSLContext) to obtain an
instance for the current initialization.
-
Method Summary
Modifier and TypeMethodDescriptiongetDefaultParameters(boolean isClient) Returns aBCSSLParameterswith properties reflecting the default configuration for connections in the given mode.getSupportedParameters(boolean isClient) Returns aBCSSLParameterswith properties reflecting the supported configuration for connections in the given mode.
-
Method Details
-
getDefaultParameters
Returns aBCSSLParameterswith properties reflecting the default configuration for connections in the given mode. This differs fromSSLContext.getDefaultSSLParameters()in two ways:- it includes the default values of the BC-specific properties, which cannot be reported
through
SSLParameters; - the defaults for either client or server mode can be requested, whereas the SSLContext method always reports the client-mode defaults.
- Parameters:
isClient- whether to return the defaults for client mode (true) or server mode (false)- Returns:
- the default
parameters
- it includes the default values of the BC-specific properties, which cannot be reported
through
-
getSupportedParameters
Returns aBCSSLParameterswith properties reflecting the supported configuration for connections in the given mode. This differs fromSSLContext.getSupportedSSLParameters()in the same two ways thatgetDefaultParameters(boolean)differs fromSSLContext.getDefaultSSLParameters().- Parameters:
isClient- whether to return the supported parameters for client mode (true) or server mode (false)- Returns:
- the supported
parameters
-