Class TLSParameterBase
- java.lang.Object
- 
- org.apache.cxf.configuration.jsse.TLSParameterBase
 
- 
- Direct Known Subclasses:
- TLSClientParameters,- TLSServerParameters
 
 public class TLSParameterBase extends Object This class is the base class for SSL/TLS parameters that are common to both client and server sides.
- 
- 
Field SummaryFields Modifier and Type Field Description protected StringcertAliasprotected org.apache.cxf.configuration.security.CertificateConstraintsTypecertConstraintsprotected org.apache.cxf.configuration.security.FiltersTypecipherSuiteFiltersprotected List<String>ciphersuitesprotected static Collection<String>DEFAULT_HTTPS_PROTOCOLSprotected KeyManager[]keyManagersprotected Stringprotocolprotected Stringproviderprotected SecureRandomsecureRandomprotected TrustManager[]trustManagers
 - 
Constructor SummaryConstructors Constructor Description TLSParameterBase()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCertAlias()This parameter retrieves the cert alias specified on server sideorg.apache.cxf.configuration.security.CertificateConstraintsTypegetCertConstraints()Get the certificate constraints typeList<String>getCipherSuites()Returns the CipherSuites associated with this endpoint.org.apache.cxf.configuration.security.FiltersTypegetCipherSuitesFilter()Returns the cipher suites filterStringgetJsseProvider()Return the JSSE provider.KeyManager[]getKeyManagers()Returns the key managers for the endpoint.SecureRandomgetSecureRandom()Returns the secure random algorithm.StringgetSecureSocketProtocol()Returns the secure socket protocol in use.TrustManager[]getTrustManagers()Returns the TrustManagers associated with the endpoint.voidsetCertAlias(String ctAlias)This parameter configures the cert alias used on server side this is useful when keystore has multiple certsvoidsetCertConstraints(org.apache.cxf.configuration.security.CertificateConstraintsType constraints)Set the certificate constraints typevoidsetCipherSuites(List<String> cs)This parameter sets the cipher suites list to use.voidsetCipherSuitesFilter(org.apache.cxf.configuration.security.FiltersType filters)This parameter sets the filter to include and/or exclude the cipher suites to use from the set list or system defaults.voidsetJsseProvider(String prov)Set the JSSE provider.voidsetKeyManagers(KeyManager[] keyMgrs)Sets the KeyManagers for this endpoint.voidsetSecureRandom(SecureRandom random)This sets the secure random provider and algorithm.voidsetSecureSocketProtocol(String proto)This sets the protocol to use.voidsetTrustManagers(TrustManager[] trustMgrs)Sets the TrustManagers associated with this endpoint.
 
- 
- 
- 
Field Detail- 
DEFAULT_HTTPS_PROTOCOLSprotected static final Collection<String> DEFAULT_HTTPS_PROTOCOLS 
 - 
keyManagersprotected KeyManager[] keyManagers 
 - 
trustManagersprotected TrustManager[] trustManagers 
 - 
providerprotected String provider 
 - 
cipherSuiteFiltersprotected org.apache.cxf.configuration.security.FiltersType cipherSuiteFilters 
 - 
certConstraintsprotected org.apache.cxf.configuration.security.CertificateConstraintsType certConstraints 
 - 
secureRandomprotected SecureRandom secureRandom 
 - 
protocolprotected String protocol 
 - 
certAliasprotected String certAlias 
 
- 
 - 
Method Detail- 
setJsseProviderpublic final void setJsseProvider(String prov) Set the JSSE provider. If not set, it uses system default.
 - 
getJsseProviderpublic String getJsseProvider() Return the JSSE provider.
 - 
setKeyManagerspublic final void setKeyManagers(KeyManager[] keyMgrs) Sets the KeyManagers for this endpoint. This parameter may be set to null for system default behavior.
 - 
getKeyManagerspublic KeyManager[] getKeyManagers() Returns the key managers for the endpoint.
 - 
setTrustManagerspublic final void setTrustManagers(TrustManager[] trustMgrs) Sets the TrustManagers associated with this endpoint. This parameter may be set to null for system default behavior.
 - 
getTrustManagerspublic TrustManager[] getTrustManagers() Returns the TrustManagers associated with the endpoint.
 - 
setCipherSuitespublic final void setCipherSuites(List<String> cs) This parameter sets the cipher suites list to use. If left unset it uses system defaults.
 - 
getCipherSuitespublic List<String> getCipherSuites() Returns the CipherSuites associated with this endpoint.
 - 
setCipherSuitesFilterpublic final void setCipherSuitesFilter(org.apache.cxf.configuration.security.FiltersType filters) This parameter sets the filter to include and/or exclude the cipher suites to use from the set list or system defaults.
 - 
getCipherSuitesFilterpublic org.apache.cxf.configuration.security.FiltersType getCipherSuitesFilter() Returns the cipher suites filter
 - 
setSecureRandompublic final void setSecureRandom(SecureRandom random) This sets the secure random provider and algorithm. If left unset or set to null, it uses the system default.
 - 
getCertConstraintspublic org.apache.cxf.configuration.security.CertificateConstraintsType getCertConstraints() Get the certificate constraints type
 - 
setCertConstraintspublic final void setCertConstraints(org.apache.cxf.configuration.security.CertificateConstraintsType constraints) Set the certificate constraints type
 - 
getSecureRandompublic SecureRandom getSecureRandom() Returns the secure random algorithm.
 - 
setSecureSocketProtocolpublic final void setSecureSocketProtocol(String proto) This sets the protocol to use. The system default is usually "TLS".
 - 
getSecureSocketProtocolpublic String getSecureSocketProtocol() Returns the secure socket protocol in use.
 - 
setCertAliaspublic final void setCertAlias(String ctAlias) This parameter configures the cert alias used on server side this is useful when keystore has multiple certs
 - 
getCertAliaspublic String getCertAlias() This parameter retrieves the cert alias specified on server side
 
- 
 
-