org.apache.camel.component.gae.auth
Class GAuthPk8Loader
java.lang.Object
org.apache.camel.component.gae.auth.GAuthPk8Loader
- All Implemented Interfaces:
- GAuthKeyLoader
public class GAuthPk8Loader
- extends Object
- implements GAuthKeyLoader
A Java PKCS#8-specific key loader.
Method Summary |
PrivateKey |
loadPrivateKey()
Loads a private key from a PKCS#8 file. |
void |
setKeyLocation(org.springframework.core.io.Resource keyLocation)
Sets the location of the PKCS#8 file that contains a private key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GAuthPk8Loader
public GAuthPk8Loader()
setKeyLocation
public void setKeyLocation(org.springframework.core.io.Resource keyLocation)
- Sets the location of the PKCS#8 file that contains a private key.
- Parameters:
keyLocation
-
loadPrivateKey
public PrivateKey loadPrivateKey()
throws Exception
- Loads a private key from a PKCS#8 file.
- Specified by:
loadPrivateKey
in interface GAuthKeyLoader
- Returns:
- the loaded private key.
- Throws:
Exception
- if key loading failed.
Apache CAMEL