Пример #1
0
  public static AuthRequest createAuthRequest(ParameterList params, RealmVerifier realmVerifier)
      throws MessageException {
    AuthRequest req = new AuthRequest(params);

    req.setRealmVerifier(realmVerifier);

    req.validate();

    if (DEBUG) _log.debug("Created auth request:\n" + req.keyValueFormEncoding());

    return req;
  }
Пример #2
0
  public static AuthRequest createAuthRequest(
      String claimedId,
      String delegate,
      boolean compatibility,
      String returnToUrl,
      String handle,
      String realm,
      RealmVerifier verifier)
      throws MessageException {
    AuthRequest req =
        new AuthRequest(claimedId, delegate, compatibility, returnToUrl, handle, realm, verifier);

    req.validate();

    if (DEBUG) _log.debug("Created auth request:\n" + req.keyValueFormEncoding());

    return req;
  }