code: public void checkPassword(String value) {
  
          if (!value.equals(password)) {
              throw Error.error(ErrorCode.X_28000);
          }
      }
docs: Checks if this object's password attibute equals
  specified argument, else throws.