Class OAuth1Exception
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.ws.rs.WebApplicationException
-
- org.glassfish.jersey.server.oauth1.OAuth1Exception
-
- All Implemented Interfaces:
Serializable
public class OAuth1Exception extends WebApplicationException
Web application exceptionthat is mapped either toResponse.Status.BAD_REQUEST(e.g. if problem with OAuth parameters occurs) orResponse.Status.UNAUTHORIZED(e.g. if signature is incorrect).- Author:
- Martin Matula, Miroslav Fuksa
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OAuth1Exception(Response.Status status, String wwwAuthHeader)Create a new exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response.StatusgetStatus()Get the status of the error response.StringgetWwwAuthHeader()Get theWWW-Authenticateheader of the request that cause the exception.-
Methods inherited from class jakarta.ws.rs.WebApplicationException
getResponse
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
OAuth1Exception
public OAuth1Exception(Response.Status status, String wwwAuthHeader)
Create a new exception.- Parameters:
status- Response status.wwwAuthHeader-Authorizationheader value of the request that cause the exception.
-
-
Method Detail
-
getStatus
public Response.Status getStatus()
Get the status of the error response.- Returns:
- Response status code.
-
getWwwAuthHeader
public String getWwwAuthHeader()
Get theWWW-Authenticateheader of the request that cause the exception.- Returns:
WWW-Authenticateheader value.
-
-