PasswordCredential credential = new PasswordCredential();
credential.setCredential(password);
credential.setEncryptedCredential(false);
SecurityServerHttpBindingStub stub = getStub();
AuthenticatedToken token = getToken(stub);
try {
stub.updatePrincipalCredential(token, user, credential);
} catch (RemoteException e) {
Debug.logError(e, module);