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
Modifier and TypeFieldDescriptionprotected String
protected org.apache.cxf.configuration.security.CertificateConstraintsType
protected org.apache.cxf.configuration.security.FiltersType
protected KeyManager[]
protected String
protected String
protected SecureRandom
protected TrustManager[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis parameter retrieves the cert alias specified on server sideorg.apache.cxf.configuration.security.CertificateConstraintsType
Get the certificate constraints typeReturns the CipherSuites associated with this endpoint.org.apache.cxf.configuration.security.FiltersType
Returns 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 void
setCertAlias
(String ctAlias) This parameter configures the cert alias used on server side this is useful when keystore has multiple certsfinal void
setCertConstraints
(org.apache.cxf.configuration.security.CertificateConstraintsType constraints) Set the certificate constraints typefinal void
setCipherSuites
(List<String> cs) This parameter sets the cipher suites list to use.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.final void
setJsseProvider
(String prov) Set the JSSE provider.final void
setKeyManagers
(KeyManager[] keyMgrs) Sets the KeyManagers for this endpoint.final void
setSecureRandom
(SecureRandom random) This sets the secure random provider and algorithm.final void
setSecureSocketProtocol
(String proto) This sets the protocol to use.final void
setTrustManagers
(TrustManager[] trustMgrs) Sets the TrustManagers associated with this endpoint.
-
Field Details
-
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
-