public boolean validatePassword(User identity, String password) throws IdentityException
{
checkNotNullArgument(identity, "User");
checkNotNullArgument(password, "Password");
return getRepository().validateCredential(getInvocationContext(), createIdentityObject(identity), new PasswordCredential(password));
}