public class GAuthPk8Loader extends Object implements GAuthKeyLoader
Constructor and Description |
---|
GAuthPk8Loader() |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.CamelContext |
getCamelContext() |
PrivateKey |
loadPrivateKey()
Loads a private key from a PKCS#8 file.
|
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setKeyLocation(String keyLocation)
Sets the location of the PKCS#8 file that contains a private key.
|
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public void setKeyLocation(String keyLocation)
public PrivateKey loadPrivateKey() throws Exception
loadPrivateKey
in interface GAuthKeyLoader
Exception
- if key loading failed.Apache Camel