|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.util.jsse.JsseParameters org.apache.camel.util.jsse.KeyManagersParameters
public class KeyManagersParameters
A representation of configuration options for creating and loading
KeyManager
instance(s).
Field Summary | |
---|---|
protected String |
algorithm
The optional algorithm name for the KeyManagerFactory used to create
the KeyManager s represented by this object's configuration. |
protected String |
keyPassword
The optional password for recovering keys in the key store. |
protected KeyStoreParameters |
keyStore
The key store configuration used to create the KeyStoreParameters that the
KeyManager s produced by this object's configuration expose. |
protected String |
provider
The optional provider identifier for the KeyManagerFactory used to create
the KeyManager s represented by this object's configuration. |
Constructor Summary | |
---|---|
KeyManagersParameters()
|
Method Summary | |
---|---|
KeyManager[] |
createKeyManagers()
Creates KeyManager s based on this instance's configuration and the
KeyStore produced by the configuration returned from
getKeyStore() . |
String |
getAlgorithm()
|
String |
getKeyPassword()
|
KeyStoreParameters |
getKeyStore()
|
String |
getProvider()
|
void |
setAlgorithm(String value)
Sets optional algorithm name for the KeyManagerFactory used to create
the KeyManager 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 the KeyStore that the
KeyManager s produced by this object's configuration expose. |
void |
setProvider(String value)
Sets the optional provider identifier for the KeyManagerFactory used to create
the KeyManager s represented by this object's configuration. |
String |
toString()
|
Methods inherited from class org.apache.camel.util.jsse.JsseParameters |
---|
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected KeyStoreParameters keyStore
KeyStoreParameters
that the
KeyManager
s produced by this object's configuration expose.
protected String keyPassword
KeyManagerFactory
that creates the KeyManager
s
represented by this object's configuration.
protected String provider
KeyManagerFactory
used to create
the KeyManager
s represented by this object's configuration.
protected String algorithm
KeyManagerFactory
used to create
the KeyManager
s represented by this object's configuration. See the Java Secure Socket Extension Reference Guide for information about
standard algorithm names.
Constructor Detail |
---|
public KeyManagersParameters()
Method Detail |
---|
public KeyManager[] createKeyManagers() throws GeneralSecurityException, IOException
KeyManager
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.
KeyManager
s
GeneralSecurityException
- if there is an error creating the
KeyManager
s or in creating the KeyStore
IOException
- if there is an error loading the KeyStore
KeyStoreParameters.createKeyStore()
public KeyStoreParameters getKeyStore()
setKeyStore(KeyStoreParameters)
public void setKeyStore(KeyStoreParameters value)
KeyStore
that the
KeyManager
s produced by this object's configuration expose.
value
- the configuration to usepublic String getKeyPassword()
setKeyPassword(String)
public void setKeyPassword(String value)
KeyManagerFactory
that creates the KeyManager
s
represented by this object's configuration.
value
- the value to usepublic String getProvider()
setProvider(String)
public void setProvider(String value)
KeyManagerFactory
used to create
the KeyManager
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()
KeyManagerFactory.getDefaultAlgorithm()
public void setAlgorithm(String value)
KeyManagerFactory
used to create
the KeyManager
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 defaultKeyManagerFactory.getDefaultAlgorithm()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |