|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.securevault.keystore.KeyStoreWrapper
public abstract class KeyStoreWrapper
Wraps the keyStore and provide abstraction need for ciphering.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
protected |
KeyStoreWrapper()
|
Method Summary | |
---|---|
protected Key |
getDefaultPrivateKey()
Returns the key based on default alias or password |
protected Key |
getKey(String alias,
String keyPassword)
Returns the key based on provided alias and key password |
protected KeyStore |
getKeyStore()
Returns KeyStore Information |
protected Key |
getPrivateKey(String alias)
Returns the key based on default key password |
PublicKey |
getPublicKey()
Returns the public key based on initialization data |
PublicKey |
getPublicKey(String alias)
Returns the public key for the given alias |
protected Key |
getPublicKeyFromCertificate(String alias)
Returns the key based on certificate of the owner to who given alias belong |
SecretKey |
getSecretKey()
Returns the secret key based on initialization data |
SecretKey |
getSecretKey(String alias,
String keyPassword)
Returns the secret key |
protected void |
init(KeyStoreInformation information,
String keyPassword)
Initialize the KeyStore wrapper based on provided KeyStoreInformation and passwords |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.commons.logging.Log log
Constructor Detail |
---|
protected KeyStoreWrapper()
Method Detail |
---|
protected void init(KeyStoreInformation information, String keyPassword)
information
- The object that has encapsulated all information for a
keyStore excepts passwordskeyPassword
- Specifies the password of the key within the keyStoreprotected Key getKey(String alias, String keyPassword)
alias
- The alias of the certificate in the specified keyStorekeyPassword
- Password for key within the KeyStrore
protected Key getPublicKeyFromCertificate(String alias)
alias
- The alias of the certificate in the specified keyStore
protected Key getDefaultPrivateKey()
protected Key getPrivateKey(String alias)
alias
- The alias
public PublicKey getPublicKey(String alias)
alias
- The alias of the certificate in the specified keyStore
public PublicKey getPublicKey()
protected KeyStore getKeyStore()
public SecretKey getSecretKey(String alias, String keyPassword)
alias
- The alias of the certificate in the specified keyStorekeyPassword
- Password to access secret key
public SecretKey getSecretKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |