public static DirectError createDirectError(OpenIDException e) { return createDirectError(e, false); }
public static DirectError createDirectError(ParameterList params) { DirectError err = new DirectError(params); try { err.validate(); } catch (MessageException e) { _log.error("Invalid direct error message created: " + err.keyValueFormEncoding()); } _log.debug("Created direct error message:\n" + err.keyValueFormEncoding()); return err; }
public boolean isVersion2() { return hasParameter("ns") && OPENID2_NS.equals(getParameterValue("ns")); }
/** * Return the error response message based on the given message * * @param message Error message * @return Direct error */ private String getErrorResponseText(String message) { log.error(message); return DirectError.createDirectError(message).keyValueFormEncoding(); }
DirectError err = DirectError.createDirectError(responseParams); + op + " error message: " + err.keyValueFormEncoding()); + err.getErrorMsg());
public void setReference(String reference) { set("reference", reference); } }
public void validate() throws MessageException { super.validate(); if ( ! (ASSOC_ERR.equals(getErrorCode()) && OPENID2_NS.equals(getParameterValue("ns")) ) ) throw new MessageException("Invalid Association Error: " + "invalid error_code or missing ns param.", OpenIDException.ASSOC_ERROR); }
public String getErrorMsg() { return getParameterValue("error"); }
DirectError err = DirectError.createDirectError(responseParams); + op + " error message: " + err.keyValueFormEncoding()); + err.getErrorMsg());
/** * Return the error response message based on the given message * * @param message Error message * @return Direct error */ private String getErrorResponseText(String message) { log.error(message); return DirectError.createDirectError(message).keyValueFormEncoding(); }
public void validate() throws MessageException { super.validate(); if ( ! (ASSOC_ERR.equals(getErrorCode()) && OPENID2_NS.equals(getParameterValue("ns")) ) ) throw new MessageException("Invalid Association Error: " + "invalid error_code or missing ns param.", OpenIDException.ASSOC_ERROR); }
public String getErrorMsg() { return getParameterValue("error"); }
public static DirectError createDirectError(String msg, boolean compatibility) { return createDirectError(null, msg, compatibility); }
DirectError err = DirectError.createDirectError(responseParams); + op + " error message: " + err.keyValueFormEncoding()); + err.getErrorMsg());
public static DirectError createDirectError(OpenIDException e, String msg, boolean compatibility) { DirectError err = new DirectError(e, msg, compatibility); try { err.validate(); } catch (MessageException ex) { _log.error("Invalid " + (compatibility ? "OpenID1" : "OpenID2") + " direct error message created for message: " + msg); } _log.debug("Created direct error message:\n" + err.keyValueFormEncoding()); return err; }
public boolean isVersion2() { return hasParameter("ns") && OPENID2_NS.equals(getParameterValue("ns")); }
public void validate() throws MessageException { super.validate(); if ( ! (ASSOC_ERR.equals(getErrorCode()) && OPENID2_NS.equals(getParameterValue("ns")) ) ) throw new MessageException("Invalid Association Error: " + "invalid error_code or missing ns param.", OpenIDException.ASSOC_ERROR); }
public String getErrorMsg() { return getParameterValue("error"); }