Class TLSParameterBase
java.lang.Object
org.apache.cxf.configuration.jsse.TLSParameterBase
- Direct Known Subclasses:
TLSClientParameters,TLSServerParameters
This class is the base class for SSL/TLS parameters that are common
to both client and server sides.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected org.apache.cxf.configuration.security.CertificateConstraintsTypeprotected org.apache.cxf.configuration.security.FiltersTypeprotected static final Collection<String>protected KeyManager[]protected Stringprotected Stringprotected SecureRandomprotected TrustManager[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis parameter retrieves the cert alias specified on server sideorg.apache.cxf.configuration.security.CertificateConstraintsTypeGet the certificate constraints typeReturns the CipherSuites associated with this endpoint.org.apache.cxf.configuration.security.FiltersTypeReturns the cipher suites filterReturn the JSSE provider.Returns the key managers for the endpoint.Returns the secure random algorithm.Returns the secure socket protocol in use.Returns the TrustManagers associated with the endpoint.final voidsetCertAlias(String ctAlias) This parameter configures the cert alias used on server side this is useful when keystore has multiple certsfinal voidsetCertConstraints(org.apache.cxf.configuration.security.CertificateConstraintsType constraints) Set the certificate constraints typefinal voidsetCipherSuites(List<String> cs) This parameter sets the cipher suites list to use.final 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.final voidsetJsseProvider(String prov) Set the JSSE provider.final voidsetKeyManagers(KeyManager[] keyMgrs) Sets the KeyManagers for this endpoint.final voidsetSecureRandom(SecureRandom random) This sets the secure random provider and algorithm.final voidsetSecureSocketProtocol(String proto) This sets the protocol to use.final voidsetTrustManagers(TrustManager[] trustMgrs) Sets the TrustManagers associated with this endpoint.
-
Field Details
-
DEFAULT_HTTPS_PROTOCOLS
-
keyManagers
-
trustManagers
-
provider
-
ciphersuites
-
cipherSuiteFilters
protected org.apache.cxf.configuration.security.FiltersType cipherSuiteFilters -
certConstraints
protected org.apache.cxf.configuration.security.CertificateConstraintsType certConstraints -
secureRandom
-
protocol
-
certAlias
-
-
Constructor Details
-
TLSParameterBase
public TLSParameterBase()
-
-
Method Details
-
setJsseProvider
Set the JSSE provider. If not set, it uses system default. -
getJsseProvider
Return the JSSE provider. -
setKeyManagers
Sets the KeyManagers for this endpoint. This parameter may be set to null for system default behavior. -
getKeyManagers
Returns the key managers for the endpoint. -
setTrustManagers
Sets the TrustManagers associated with this endpoint. This parameter may be set to null for system default behavior. -
getTrustManagers
Returns the TrustManagers associated with the endpoint. -
setCipherSuites
This parameter sets the cipher suites list to use. If left unset it uses system defaults. -
getCipherSuites
Returns the CipherSuites associated with this endpoint. -
setCipherSuitesFilter
public 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. -
getCipherSuitesFilter
public org.apache.cxf.configuration.security.FiltersType getCipherSuitesFilter()Returns the cipher suites filter -
setSecureRandom
This sets the secure random provider and algorithm. If left unset or set to null, it uses the system default. -
getCertConstraints
public org.apache.cxf.configuration.security.CertificateConstraintsType getCertConstraints()Get the certificate constraints type -
setCertConstraints
public final void setCertConstraints(org.apache.cxf.configuration.security.CertificateConstraintsType constraints) Set the certificate constraints type -
getSecureRandom
Returns the secure random algorithm. -
setSecureSocketProtocol
This sets the protocol to use. The system default is usually "TLS". -
getSecureSocketProtocol
Returns the secure socket protocol in use. -
setCertAlias
This parameter configures the cert alias used on server side this is useful when keystore has multiple certs -
getCertAlias
This parameter retrieves the cert alias specified on server side
-