org.apache.camel.component.gae.auth
Class GAuthPk8Loader

java.lang.Object
  extended by org.apache.camel.component.gae.auth.GAuthPk8Loader
All Implemented Interfaces:
org.apache.camel.CamelContextAware, GAuthKeyLoader

public class GAuthPk8Loader
extends Object
implements GAuthKeyLoader

A Java PKCS#8-specific key loader.


Constructor Summary
GAuthPk8Loader()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GAuthPk8Loader

public GAuthPk8Loader()
Method Detail

getCamelContext

public org.apache.camel.CamelContext getCamelContext()
Specified by:
getCamelContext in interface org.apache.camel.CamelContextAware

setCamelContext

public void setCamelContext(org.apache.camel.CamelContext camelContext)
Specified by:
setCamelContext in interface org.apache.camel.CamelContextAware

setKeyLocation

public void setKeyLocation(String keyLocation)
Sets the location of the PKCS#8 file that contains a private key.


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