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

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

public class GAuthJksLoader
extends Object
implements GAuthKeyLoader

A Java keystore specific key loader.


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

Constructor Detail

GAuthJksLoader

public GAuthJksLoader()

GAuthJksLoader

public GAuthJksLoader(String keyStoreLocation,
                      String storePass,
                      String keyPass,
                      String keyAlias)
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

setKeyStoreLocation

public void setKeyStoreLocation(String keyStoreLocation)
Set the location of the Java keystore.


setStorePass

public void setStorePass(String storePass)
Sets the password used to open the key store.


setKeyPass

public void setKeyPass(String keyPass)
Sets the password used to get access to a specific key.


setKeyAlias

public void setKeyAlias(String keyAlias)
Sets the alias of the key to be loaded.


loadPrivateKey

public PrivateKey loadPrivateKey()
                          throws Exception
Loads a private key from a Java keystore depending on this loader's properties.

Specified by:
loadPrivateKey in interface GAuthKeyLoader
Returns:
the loaded private key.
Throws:
Exception - if key loading failed.


Apache Camel