Package org.apache.camel.support.jsse
Class TrustManagersParameters
java.lang.Object
org.apache.camel.support.jsse.JsseParameters
org.apache.camel.support.jsse.TrustManagersParameters
- All Implemented Interfaces:
CamelContextAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe optional algorithm name for theTrustManagerFactoryused to create theTrustManagers represented by this object's configuration.protected KeyStoreParametersThe key store configuration used to create theKeyStoreParametersthat theTrustManagers produced by this object's configuration expose.protected StringThe optional provider identifier for theTrustManagerFactoryused to create theTrustManagers represented by this object's configuration.protected TrustManagerTo use a existing configured trust manager instead of usingTrustManagerFactoryto get theTrustManager. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreatesTrustManagers based on this instance's configuration and theKeyStoreproduced by the configuration returned fromgetKeyStore().voidsetAlgorithm(String value) Sets optional algorithm name for theTrustManagerFactoryused to create theTrustManagers represented by this object's configuration.voidsetKeyStore(KeyStoreParameters value) Sets the key store configuration used to create theKeyStoreParametersthat theTrustManagers produced by this object's configuration expose.voidsetProvider(String value) Sets the optional provider identifier for theTrustManagerFactoryused to create theTrustManagers represented by this object's configuration.voidsetTrustManager(TrustManager trustManager) To use a existing configured trust manager instead of usingTrustManagerFactoryto get theTrustManager.toString()Methods inherited from class org.apache.camel.support.jsse.JsseParameters
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext
-
Field Details
-
keyStore
The key store configuration used to create theKeyStoreParametersthat theTrustManagers produced by this object's configuration expose. -
provider
The optional provider identifier for theTrustManagerFactoryused to create theTrustManagers represented by this object's configuration. -
algorithm
The optional algorithm name for theTrustManagerFactoryused to create theTrustManagers represented by this object's configuration. See the Java Secure Socket Extension Reference Guide for information about standard algorithm names. -
trustManager
To use a existing configured trust manager instead of usingTrustManagerFactoryto get theTrustManager.
-
-
Constructor Details
-
TrustManagersParameters
public TrustManagersParameters()
-
-
Method Details
-
createTrustManagers
CreatesTrustManagers based on this instance's configuration and theKeyStoreproduced by the configuration returned fromgetKeyStore(). TheKeyManagers are produced from a factory created by using the provider and algorithm identifiers returned bygetProvider()andgetAlgorithm(), respectively. If either of these methods returns null, the default JSSE value is used instead.- Returns:
- the initialized
TrustManagers - Throws:
GeneralSecurityException- if there is an error creating theTrustManagerss or in creating theKeyStoreIOException- if there is an error loading theKeyStore- See Also:
-
getKeyStore
-
setKeyStore
Sets the key store configuration used to create theKeyStoreParametersthat theTrustManagers produced by this object's configuration expose.- Parameters:
value- the configuration to use
-
getProvider
-
setProvider
Sets the optional provider identifier for theTrustManagerFactoryused to create theTrustManagers represented by this object's configuration.- Parameters:
value- the desired provider identifier ornullto use the highest priority provider implementing the algorithm- See Also:
-
getAlgorithm
-
setAlgorithm
Sets optional algorithm name for theTrustManagerFactoryused to create theTrustManagers represented by this object's configuration. See the Java Secure Socket Extension Reference Guide for information about standard algorithm names.- Parameters:
value- the desired algorithm ornullto use default- See Also:
-
getTrustManager
-
setTrustManager
To use a existing configured trust manager instead of usingTrustManagerFactoryto get theTrustManager. -
toString
-