public class KeyStoreHolder extends Object
Modifier and Type | Method and Description |
---|---|
static KeyStoreHolder |
getInstance()
Get the key store.
|
PrivateKey |
getPrivateKey(String keyAlias,
char[] keyPassword,
String keyStoreFilePath,
char[] keyStorePassword)
Get the private key for a given key alias.
|
public static KeyStoreHolder getInstance()
public PrivateKey getPrivateKey(String keyAlias, char[] keyPassword, String keyStoreFilePath, char[] keyStorePassword) throws BallerinaException
keyAlias
- the private key alias namekeyPassword
- the password to protect the keykeyStoreFilePath
- the key store file pathkeyStorePassword
- the key store passwordBallerinaException
- if the keystore has not been initialized
(loaded), if the algorithm for recovering the entry cannot be found,
alias
or keyPassword
does not contain
the information needed to recover the key (e.g. wrong password)Copyright © 2018 WSO2. All rights reserved.