*/
public PrivateKey getPrivateKey(String alias) {
if(_logger.isLoggable(Level.FINE)){
_logger.log(Level.FINE, "Getting private key for alias:{0}", alias);
}
X509KeyManager keyMgr = getManagerFromToken(alias);
if (keyMgr != null) {
String aliasName = alias.substring(alias.indexOf(':') + 1);
return keyMgr.getPrivateKey(aliasName);
} else {
return mgr.getPrivateKey(alias);
}
}