Package org.oa4mp.delegation.server
Class OA2RedirectableError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- edu.uiuc.ncsa.security.core.exceptions.GeneralException
-
- org.oa4mp.delegation.server.OA2GeneralError
-
- org.oa4mp.delegation.server.OA2RedirectableError
-
- All Implemented Interfaces:
Serializable
public class OA2RedirectableError extends OA2GeneralError
A standard OIDC error, where there is a valid redirect and the return codes are turned into parameters in the redirect. In cases where there is no redirect available, you must use anOA2GeneralError
instead.Note
This is typically used in the authorization leg of the code flow. For the token leg useOA2ATException
instead.Created by Jeff Gaynor
on 2/6/15 at 11:33 AM- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.oa4mp.delegation.server.OA2GeneralError
client
-
-
Constructor Summary
Constructors Constructor Description OA2RedirectableError()
OA2RedirectableError(String message)
OA2RedirectableError(String error, String description, int httpStatus, String state)
OA2RedirectableError(String error, String description, int httpStatus, String state, URI callback)
OA2RedirectableError(String error, String description, int httpStatus, String state, URI callback, BaseClient client)
OA2RedirectableError(String error, String description, int httpStatus, String state, BaseClient client)
OA2RedirectableError(String message, Throwable cause)
OA2RedirectableError(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getCallback()
boolean
hasCallback()
void
setCallback(URI callback)
String
toString()
-
Methods inherited from class org.oa4mp.delegation.server.OA2GeneralError
addStackTraceToFM, addStackTraceToFM, asJSON, getClient, getDescription, getError, getForensicMessage, getHttpStatus, getState, hasClient, hasForensicMessage, setClient, setDescription, setError, setForensicMessage, setHttpStatus, setState, setValues
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
OA2RedirectableError
public OA2RedirectableError(String error, String description, int httpStatus, String state, URI callback)
-
OA2RedirectableError
public OA2RedirectableError(String error, String description, int httpStatus, String state, URI callback, BaseClient client)
-
OA2RedirectableError
public OA2RedirectableError(String error, String description, int httpStatus, String state)
-
OA2RedirectableError
public OA2RedirectableError(String error, String description, int httpStatus, String state, BaseClient client)
-
OA2RedirectableError
public OA2RedirectableError()
-
OA2RedirectableError
public OA2RedirectableError(Throwable cause)
-
OA2RedirectableError
public OA2RedirectableError(String message)
-
-
Method Detail
-
getCallback
public URI getCallback()
-
setCallback
public void setCallback(URI callback)
-
hasCallback
public boolean hasCallback()
-
toString
public String toString()
- Overrides:
toString
in classOA2GeneralError
-
-