Class IdentityKeyStoreWrapper
java.lang.Object
org.apache.synapse.securevault.keystore.KeyStoreWrapper
org.apache.synapse.securevault.keystore.IdentityKeyStoreWrapper
Represents the private keyStore entry
To provide that abstraction , this class exposes both getter methods to public,
private and secret keys
-
Field Summary
Fields inherited from class org.apache.synapse.securevault.keystore.KeyStoreWrapper
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAbstraction for getting Private Entry KeyStore(Identity)Returns the private key based on initialization datagetPrivateKey(String alias) Returns the private key based on initialization datagetPrivateKey(String alias, String keyPassword) Returns the private or secret key based on given password and aliasvoidinit(IdentityKeyStoreInformation information, String keyPassword) Methods inherited from class org.apache.synapse.securevault.keystore.KeyStoreWrapper
getDefaultPrivateKey, getKey, getKeyStore, getPublicKey, getPublicKey, getPublicKeyFromCertificate, getSecretKey, getSecretKey, init
-
Constructor Details
-
IdentityKeyStoreWrapper
public IdentityKeyStoreWrapper()
-
-
Method Details
-
init
-
getPrivateKey
Returns the private or secret key based on given password and alias- Parameters:
alias- The alias of the certificate in the specified keyStorekeyPassword- Password to access private key- Returns:
- PrivateKey if there is a one , otherwise null
-
getPrivateKey
Returns the private key based on initialization data- Returns:
- PrivateKey if there is a one , otherwise null
-
getPrivateKey
Returns the private key based on initialization data- Overrides:
getPrivateKeyin classKeyStoreWrapper- Parameters:
alias- The alias- Returns:
- PrivateKey if there is a one , otherwise null
-
getIdentityKeyStore
Abstraction for getting Private Entry KeyStore(Identity)- Returns:
- KeyStore Instance
-