Authenticator[] authenticators = createAuthenticators( ((AuthenticationInterceptorBean)interceptorBean).getAuthenticators() );
((AuthenticationInterceptor) interceptor).setAuthenticators( authenticators );
// password policies
List<PasswordPolicyBean> ppolicyBeans = ((AuthenticationInterceptorBean)interceptorBean).getPasswordPolicies();
PpolicyConfigContainer ppolicyContainer = new PpolicyConfigContainer();
for ( PasswordPolicyBean ppolicyBean : ppolicyBeans )
{
PasswordPolicyConfiguration ppolicyConfig = createPwdPolicyConfig( ppolicyBean );
if ( ppolicyConfig != null )
{
// the name should be strictly 'default', the default policy can't be enforced by defining a new AT
if ( ppolicyBean.getPwdId().equalsIgnoreCase( "default" ) )
{
ppolicyContainer.setDefaultPolicy( ppolicyConfig );
}
else
{
ppolicyContainer.addPolicy( ppolicyBean.getDn(), ppolicyConfig );
}
}
}
( ( AuthenticationInterceptor ) interceptor ).setPwdPolicies( ppolicyContainer );