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

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

public class GAuthJksLoader
extends Object
implements GAuthKeyLoader

A Java keystore specific key loader.


Constructor Summary
GAuthJksLoader()
           
GAuthJksLoader(org.springframework.core.io.Resource keyStoreLocation, String storePass, String keyPass, String keyAlias)
           
 
Method Summary
 PrivateKey loadPrivateKey()
          Loads a private key from a Java keystore depending on this loader's properties.
 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(org.springframework.core.io.Resource 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(org.springframework.core.io.Resource keyStoreLocation,
                      String storePass,
                      String keyPass,
                      String keyAlias)
Method Detail

setKeyStoreLocation

public void setKeyStoreLocation(org.springframework.core.io.Resource keyStoreLocation)
Set the location of the Java keystore.

Parameters:
keyStoreLocation -

setStorePass

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

Parameters:
storePass -

setKeyPass

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

Parameters:
keyPass -

setKeyAlias

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

Parameters:
keyAlias -

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