* @see org.apache.jetspeed.security.AuthenticationProviderProxy#setPublicPasswordCredential(org.apache.jetspeed.security.PasswordCredential,
* org.apache.jetspeed.security.PasswordCredential, java.lang.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));
}