public static AuthFailure createAuthFailure(ParameterList params) throws MessageException { AuthFailure fail = new AuthFailure(params); fail.validate(); if (DEBUG) _log.debug("Retrieved auth failure from message parameters:\n" + fail.keyValueFormEncoding()); return fail; }
public boolean isVersion2() { return hasParameter("openid.ns") && OPENID2_NS.equals(getParameterValue("openid.ns")); }
public void validate() throws MessageException { super.validate(); String mode = getParameterValue("openid.mode"); if (! MODE_CANCEL.equals(mode)) throw new MessageException( "Invalid openid.mode; expected " + MODE_CANCEL + " found: " + mode, OpenIDException.AUTH_ERROR); } }
result.setAuthResponse(AuthFailure.createAuthFailure(response)); _log.info("Received auth failure."); return result;
authReq.getReturnTo()); return new AuthFailure(! isVersion2, authReq.getReturnTo());
public void validate() throws MessageException { super.validate(); String mode = getParameterValue("openid.mode"); if (! MODE_CANCEL.equals(mode)) throw new MessageException( "Invalid openid.mode; expected " + MODE_CANCEL + " found: " + mode, OpenIDException.AUTH_ERROR); } }
result.setAuthResponse(AuthFailure.createAuthFailure(response)); _log.info("Received auth failure."); return result;
authReq.getReturnTo()); return new AuthFailure(! isVersion2, authReq.getReturnTo());
public static AuthFailure createAuthFailure(ParameterList params) throws MessageException { AuthFailure fail = new AuthFailure(params); fail.validate(); if (DEBUG) _log.debug("Retrieved auth failure from message parameters:\n" + fail.keyValueFormEncoding()); return fail; }
public boolean isVersion2() { return hasParameter("openid.ns") && OPENID2_NS.equals(getParameterValue("openid.ns")); }
public void validate() throws MessageException { super.validate(); String mode = getParameterValue("openid.mode"); if (!MODE_CANCEL.equals(mode)) { throw new MessageException( "Invalid openid.mode; expected " + MODE_CANCEL + " found: " + mode, OpenIDException.AUTH_ERROR); } } }
result.setAuthResponse(AuthFailure.createAuthFailure(response)); _log.info("Received auth failure."); return result;
authReq.getReturnTo()); return new AuthFailure(! isVersion2, authReq.getReturnTo());
public static AuthFailure createAuthFailure(ParameterList params) throws MessageException { AuthFailure fail = new AuthFailure(params); fail.validate(); if (DEBUG) _log.debug("Retrieved auth failure from message parameters:\n" + fail.keyValueFormEncoding()); return fail; }
public boolean isVersion2() { return hasParameter("openid.ns") && OPENID2_NS.equals(getParameterValue("openid.ns")); }
public void validate() throws MessageException { super.validate(); String mode = getParameterValue("openid.mode"); if (! MODE_CANCEL.equals(mode)) throw new MessageException( "Invalid openid.mode; expected " + MODE_CANCEL + " found: " + mode, OpenIDException.AUTH_ERROR); } }
result.setAuthResponse(AuthFailure.createAuthFailure(response)); _log.info("Received auth failure."); return result;