Package org.apache.camel.support.jsse
Class KeyManagersParameters
java.lang.Object
org.apache.camel.support.jsse.JsseParameters
org.apache.camel.support.jsse.KeyManagersParameters
- All Implemented Interfaces:
CamelContextAware,HasCamelContext
A representation of configuration options for creating and loading
KeyManager instance(s).-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected KeyStoreParametersprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreatesKeyManagers based on this instance's configuration and theKeyStoreproduced by the configuration returned fromgetKeyStore().voidsetAlgorithm(String value) The algorithm name for theKeyManagerFactoryused to create theKeyManagers represented by this object's configuration.voidsetKeyPassword(String value) The password for recovering keys in the key store.voidsetKeyStore(KeyStoreParameters value) The key store configuration used to create theKeyStorethat theKeyManagers produced by this object's configuration expose.voidsetProvider(String value) The provider identifier for theKeyManagerFactoryused to create theKeyManagers represented by this object's configuration.toString()Methods inherited from class org.apache.camel.support.jsse.JsseParameters
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext
-
Field Details
-
keyStore
-
keyPassword
-
provider
-
algorithm
-
-
Constructor Details
-
KeyManagersParameters
public KeyManagersParameters()
-
-
Method Details
-
createKeyManagers
CreatesKeyManagers 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
KeyManagers - Throws:
GeneralSecurityException- if there is an error creating theKeyManagers or in creating theKeyStoreIOException- if there is an error loading theKeyStore- See Also:
-
getKeyStore
-
setKeyStore
The key store configuration used to create theKeyStorethat theKeyManagers produced by this object's configuration expose.- Parameters:
value- the configuration to use
-
getKeyPassword
-
setKeyPassword
The password for recovering keys in the key store. Used by theKeyManagerFactorythat creates theKeyManagers represented by this object's configuration.- Parameters:
value- the value to use
-
getProvider
-
setProvider
The provider identifier for theKeyManagerFactoryused to create theKeyManagers 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
The algorithm name for theKeyManagerFactoryused to create theKeyManagers represented by this object's configuration. See the See https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html- Parameters:
value- the desired algorithm ornullto use default- See Also:
-
toString
-