public class GAuthJksLoader extends Object implements GAuthKeyLoader
| Constructor and Description |
|---|
GAuthJksLoader() |
GAuthJksLoader(String keyStoreLocation,
String storePass,
String keyPass,
String keyAlias) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.CamelContext |
getCamelContext() |
PrivateKey |
loadPrivateKey()
Loads a private key from a Java keystore depending on this loader's properties.
|
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setKeyAlias(String keyAlias)
Sets the alias of the key to be loaded.
|
void |
setKeyPass(String keyPass)
Sets the password used to get access to a specific key.
|
void |
setKeyStoreLocation(String keyStoreLocation)
Set the location of the Java keystore.
|
void |
setStorePass(String storePass)
Sets the password used to open the key store.
|
public org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic void setKeyStoreLocation(String keyStoreLocation)
public void setStorePass(String storePass)
public void setKeyPass(String keyPass)
public void setKeyAlias(String keyAlias)
public PrivateKey loadPrivateKey() throws Exception
loadPrivateKey in interface GAuthKeyLoaderException - if key loading failed.Apache Camel