Class TLSClientParameters
java.lang.Object
org.apache.cxf.configuration.jsse.TLSParameterBase
org.apache.cxf.configuration.jsse.TLSClientParameters
This class extends 
TLSParameterBase with client-specific
 SSL/TLS parameters.- 
Field SummaryFields inherited from class org.apache.cxf.configuration.jsse.TLSParameterBasecertAlias, certConstraints, cipherSuiteFilters, ciphersuites, DEFAULT_HTTPS_PROTOCOLS, keyManagers, protocol, provider, secureRandom, trustManagers
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGet custom HostnameVerifierstatic String[]intReturns the SSL cache timeout in seconds if it has been configured or the default valueGet the SSLContext parameter to use (if it has been set)final SSLSocketFactoryReturns the SSLSocketFactory to be used, or null if none has been set.inthashCode()booleanReturns whether or not JSSE omits checking if the host name specified in the URL matches that of the Common Name (CN) on the server's certificate.booleanReturns whether or notHttpsURLConnection.getDefaultHostnameVerifier()should be used to create https connections.booleanReturns whether or notHttpsURLConnection.getDefaultSSLSocketFactory()should be used to create https connections.voidsetDisableCNCheck(boolean disableCNCheck) Set whether or not JSEE should omit checking if the host name specified in the URL matches that of the Common Name (CN) on the server's certificate.voidsetHostnameVerifier(HostnameVerifier verifier) Set custom HostnameVerifiervoidsetSslCacheTimeout(int sslCacheTimeout) This sets the SSL Session Cache timeout value in seconds for client sessions handled by CXFvoidsetSslContext(SSLContext sslContext) Set an SSLContext parameter to use to create https connectionsfinal voidsetSSLSocketFactory(SSLSocketFactory factory) This sets the SSLSocketFactory to use, causing all other properties of this bean (and its superclass) to get ignored (this takes precendence).voidsetUseHttpsURLConnectionDefaultHostnameVerifier(boolean useHttpsURLConnectionDefaultHostnameVerifier) Sets whether or notHttpsURLConnection.getDefaultHostnameVerifier()should be used to create https connections.voidsetUseHttpsURLConnectionDefaultSslSocketFactory(boolean useHttpsURLConnectionDefaultSslSocketFactory) Sets whether or notHttpsURLConnection.getDefaultSSLSocketFactory()should be used to create https connections.Methods inherited from class org.apache.cxf.configuration.jsse.TLSParameterBasegetCertAlias, getCertConstraints, getCipherSuites, getCipherSuitesFilter, getJsseProvider, getKeyManagers, getSecureRandom, getSecureSocketProtocol, getTrustManagers, setCertAlias, setCertConstraints, setCipherSuites, setCipherSuitesFilter, setJsseProvider, setKeyManagers, setSecureRandom, setSecureSocketProtocol, setTrustManagers
- 
Constructor Details- 
TLSClientParameterspublic TLSClientParameters()
 
- 
- 
Method Details- 
setHostnameVerifierSet custom HostnameVerifier- Parameters:
- verifier- hostname verifier
 
- 
getHostnameVerifierGet custom HostnameVerifier- Returns:
- hostname verifier
 
- 
setDisableCNCheckpublic void setDisableCNCheck(boolean disableCNCheck) Set whether or not JSEE should omit checking if the host name specified in the URL matches that of the Common Name (CN) on the server's certificate. Default is false; this attribute should not be set to true during production use.
- 
isDisableCNCheckpublic boolean isDisableCNCheck()Returns whether or not JSSE omits checking if the host name specified in the URL matches that of the Common Name (CN) on the server's certificate.
- 
setSSLSocketFactoryThis sets the SSLSocketFactory to use, causing all other properties of this bean (and its superclass) to get ignored (this takes precendence).
- 
getSSLSocketFactoryReturns the SSLSocketFactory to be used, or null if none has been set.
- 
getSslCacheTimeoutpublic int getSslCacheTimeout()Returns the SSL cache timeout in seconds if it has been configured or the default value
- 
setSslCacheTimeoutpublic void setSslCacheTimeout(int sslCacheTimeout) This sets the SSL Session Cache timeout value in seconds for client sessions handled by CXF
- 
isUseHttpsURLConnectionDefaultSslSocketFactorypublic boolean isUseHttpsURLConnectionDefaultSslSocketFactory()Returns whether or notHttpsURLConnection.getDefaultSSLSocketFactory()should be used to create https connections. Iftrue,TLSParameterBase.getJsseProvider(),TLSParameterBase.getSecureSocketProtocol(),TLSParameterBase.getTrustManagers(),TLSParameterBase.getKeyManagers(),TLSParameterBase.getSecureRandom(),TLSParameterBase.getCipherSuites()andTLSParameterBase.getCipherSuitesFilter()are ignored.
- 
setUseHttpsURLConnectionDefaultSslSocketFactorypublic void setUseHttpsURLConnectionDefaultSslSocketFactory(boolean useHttpsURLConnectionDefaultSslSocketFactory) Sets whether or notHttpsURLConnection.getDefaultSSLSocketFactory()should be used to create https connections.
- 
isUseHttpsURLConnectionDefaultHostnameVerifierpublic boolean isUseHttpsURLConnectionDefaultHostnameVerifier()Returns whether or notHttpsURLConnection.getDefaultHostnameVerifier()should be used to create https connections. Iftrue,isDisableCNCheck()is ignored.
- 
setUseHttpsURLConnectionDefaultHostnameVerifierpublic void setUseHttpsURLConnectionDefaultHostnameVerifier(boolean useHttpsURLConnectionDefaultHostnameVerifier) Sets whether or notHttpsURLConnection.getDefaultHostnameVerifier()should be used to create https connections.
- 
hashCodepublic int hashCode()
- 
equals
- 
getSslContextGet the SSLContext parameter to use (if it has been set)
- 
setSslContextSet an SSLContext parameter to use to create https connections
- 
getPreferredClientProtocols
 
-