public class TrustManagersParameters extends JsseParameters
Modifier and Type | Field and Description |
---|---|
protected String |
algorithm
The optional algorithm name for the
TrustManagerFactory used to create the TrustManager s
represented by this object's configuration. |
protected KeyStoreParameters |
keyStore
The key store configuration used to create the
KeyStoreParameters that the TrustManager s produced
by this object's configuration expose. |
protected String |
provider
The optional provider identifier for the
TrustManagerFactory used to create the TrustManager s
represented by this object's configuration. |
protected TrustManager |
trustManager
To use a existing configured trust manager instead of using
TrustManagerFactory to get the
TrustManager . |
Constructor and Description |
---|
TrustManagersParameters() |
Modifier and Type | Method and Description |
---|---|
TrustManager[] |
createTrustManagers()
Creates
TrustManager s based on this instance's configuration and the KeyStore produced by the
configuration returned from getKeyStore() . |
String |
getAlgorithm() |
KeyStoreParameters |
getKeyStore() |
String |
getProvider() |
TrustManager |
getTrustManager() |
void |
setAlgorithm(String value)
Sets optional algorithm name for the
TrustManagerFactory used to create the TrustManager s
represented by this object's configuration. |
void |
setKeyStore(KeyStoreParameters value)
Sets the key store configuration used to create the
KeyStoreParameters that the TrustManager s
produced by this object's configuration expose. |
void |
setProvider(String value)
Sets the optional provider identifier for the
TrustManagerFactory used to create the
TrustManager s represented by this object's configuration. |
void |
setTrustManager(TrustManager trustManager)
To use a existing configured trust manager instead of using
TrustManagerFactory to get the
TrustManager . |
String |
toString() |
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
trySetCamelContext
protected KeyStoreParameters keyStore
KeyStoreParameters
that the TrustManager
s produced
by this object's configuration expose.protected String provider
TrustManagerFactory
used to create the TrustManager
s
represented by this object's configuration.protected String algorithm
TrustManagerFactory
used to create the TrustManager
s
represented by this object's configuration. See the
Java Secure
Socket Extension Reference Guide for information about standard algorithm names.protected TrustManager trustManager
TrustManagerFactory
to get the
TrustManager
.public TrustManager[] createTrustManagers() throws GeneralSecurityException, IOException
TrustManager
s based on this instance's configuration and the KeyStore
produced by the
configuration returned from getKeyStore()
. The KeyManager
s are produced from a factory created
by using the provider and algorithm identifiers returned by getProvider()
and getAlgorithm()
,
respectively. If either of these methods returns null, the default JSSE value is used instead.TrustManager
sGeneralSecurityException
- if there is an error creating the TrustManagers
s or in creating the
KeyStore
IOException
- if there is an error loading the KeyStore
KeyStoreParameters.createKeyStore()
public KeyStoreParameters getKeyStore()
public void setKeyStore(KeyStoreParameters value)
KeyStoreParameters
that the TrustManager
s
produced by this object's configuration expose.value
- the configuration to usepublic String getProvider()
public void setProvider(String value)
TrustManagerFactory
used to create the
TrustManager
s represented by this object's configuration.value
- the desired provider identifier or null
to use the highest priority provider implementing
the algorithmSecurity.getProviders()
public String getAlgorithm()
public void setAlgorithm(String value)
TrustManagerFactory
used to create the TrustManager
s
represented by this object's configuration. See the
Java Secure
Socket Extension Reference Guide for information about standard algorithm names.value
- the desired algorithm or null
to use defaultTrustManagerFactory.getDefaultAlgorithm()
public TrustManager getTrustManager()
public void setTrustManager(TrustManager trustManager)
TrustManagerFactory
to get the
TrustManager
.Apache Camel