*/
protected KeyManager[] getKeyManagers(String algorithm,
String keyAlias)
throws Exception {
KeyManager[] kms = null;
SecuritySupport secSupp = SecurityUtil.getSecuritySupport();
String token=getTokenFromKeyAlias(keyAlias);
String certAlias = getCertAliasFromKeyAlias(keyAlias);
String keystorePass = secSupp.getKeyStorePassword(token);
KeyStore ks = secSupp.getKeyStore(token);
if (ks==null) {
throw new IOException("keystore not found for token " + token);
}
KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm);
kmf.init(ks, keystorePass.toCharArray());