/**
* @see org.apache.jetspeed.security.AuthenticationProviderProxy#getAuthenticationProvider(java.lang.String)
*/
public String getAuthenticationProvider(String userName)
{
AuthenticationProvider authenticationProvider;
String providerName = null;
for (int i = 0; i < authenticationProviders.size(); i++)
{
authenticationProvider = (AuthenticationProvider)authenticationProviders.get(i);
if (authenticationProvider.getUserSecurityHandler().isUserPrincipal(userName))
{
providerName = authenticationProvider.getProviderName();
break;
}
}
return providerName;
}