throw new RuntimeException(e);
}
if(this.signOutgoingMessages)
{
KeyProviderType keyProvider = this.idpConfiguration.getKeyProvider();
if(keyProvider == null)
throw new LifecycleException("Key Provider is null for context=" + context.getName());
try
{
ClassLoader tcl = SecurityActions.getContextClassLoader();
String keyManagerClassName = keyProvider.getClassName();
if(keyManagerClassName == null)
throw new RuntimeException("KeyManager class name is null");
Class<?> clazz = tcl.loadClass(keyManagerClassName);
this.keyManager = (TrustKeyManager) clazz.newInstance();
keyManager.setAuthProperties(keyProvider.getAuth());
keyManager.setValidatingAlias(keyProvider.getValidatingAlias());
}
catch(Exception e)
{
log.error("Exception reading configuration:",e);
throw new LifecycleException(e.getLocalizedMessage());
}
if(trace) log.trace("Key Provider=" + keyProvider.getClassName());
}
//Add some keys to the attibutes
String[] ak = new String[] {"mail","cn","commonname","givenname",
"surname","employeeType",