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 String
The optional algorithm name for theKeyManagerFactory
used to create theKeyManager
s represented by this object's configuration.protected String
The optional password for recovering keys in the key store.protected KeyStoreParameters
The key store configuration used to create theKeyStoreParameters
that theKeyManager
s produced by this object's configuration expose.protected String
The optional provider identifier for theKeyManagerFactory
used to create theKeyManager
s represented by this object's configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreatesKeyManager
s based on this instance's configuration and theKeyStore
produced by the configuration returned fromgetKeyStore()
.void
setAlgorithm
(String value) Sets optional algorithm name for theKeyManagerFactory
used to create theKeyManager
s represented by this object's configuration.void
setKeyPassword
(String value) Sets the optional password for recovering keys in the key store.void
setKeyStore
(KeyStoreParameters value) Sets the key store configuration used to create theKeyStore
that theKeyManager
s produced by this object's configuration expose.void
setProvider
(String value) Sets the optional provider identifier for theKeyManagerFactory
used to create theKeyManager
s 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
The key store configuration used to create theKeyStoreParameters
that theKeyManager
s produced by this object's configuration expose. -
keyPassword
The optional password for recovering keys in the key store. Used by theKeyManagerFactory
that creates theKeyManager
s represented by this object's configuration. -
provider
The optional provider identifier for theKeyManagerFactory
used to create theKeyManager
s represented by this object's configuration. -
algorithm
The optional algorithm name for theKeyManagerFactory
used to create theKeyManager
s represented by this object's configuration. See the Java Secure Socket Extension Reference Guide for information about standard algorithm names.
-
-
Constructor Details
-
KeyManagersParameters
public KeyManagersParameters()
-
-
Method Details
-
createKeyManagers
CreatesKeyManager
s based on this instance's configuration and theKeyStore
produced by the configuration returned fromgetKeyStore()
. TheKeyManager
s 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
KeyManager
s - Throws:
GeneralSecurityException
- if there is an error creating theKeyManager
s or in creating theKeyStore
IOException
- if there is an error loading theKeyStore
- See Also:
-
getKeyStore
- See Also:
-
setKeyStore
Sets the key store configuration used to create theKeyStore
that theKeyManager
s produced by this object's configuration expose.- Parameters:
value
- the configuration to use
-
getKeyPassword
- See Also:
-
setKeyPassword
Sets the optional password for recovering keys in the key store. Used by theKeyManagerFactory
that creates theKeyManager
s represented by this object's configuration.- Parameters:
value
- the value to use
-
getProvider
- See Also:
-
setProvider
Sets the optional provider identifier for theKeyManagerFactory
used to create theKeyManager
s represented by this object's configuration.- Parameters:
value
- the desired provider identifier ornull
to use the highest priority provider implementing the algorithm- See Also:
-
getAlgorithm
- See Also:
-
setAlgorithm
Sets optional algorithm name for theKeyManagerFactory
used to create theKeyManager
s 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 ornull
to use default- See Also:
-
toString
-