/**
* @see org.apache.jetspeed.security.AuthenticationProviderProxy#setPassword(String, String, String, String)
*/
public void setPassword(String userName, String oldPassword, String newPassword, String authenticationProvider) throws SecurityException
{
AuthenticationProvider provider = getAuthenticationProviderByName(authenticationProvider);
if ( provider != null )
{
provider.getCredentialHandler().setPassword(userName,oldPassword,newPassword);
}
else
{
throw new SecurityException(SecurityException.INVALID_AUTHENTICATION_PROVIDER.create(authenticationProvider));
}