public class OAuth1Exception extends WebApplicationException
Web application exception
that is mapped either
to Response.Status.BAD_REQUEST
(e.g. if problem with OAuth
parameters occurs) or
Response.Status.UNAUTHORIZED
(e.g. if signature is incorrect).Constructor and Description |
---|
OAuth1Exception(Response.Status status,
String wwwAuthHeader)
Create a new exception.
|
Modifier and Type | Method and Description |
---|---|
Response.Status |
getStatus()
Get the status of the error response.
|
String |
getWwwAuthHeader()
Get the
WWW-Authenticate header of the request that cause the exception. |
getResponse
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public OAuth1Exception(Response.Status status, String wwwAuthHeader)
status
- Response status.wwwAuthHeader
- Authorization
header value of the request that cause the exception.public Response.Status getStatus()
public String getWwwAuthHeader()
WWW-Authenticate
header of the request that cause the exception.WWW-Authenticate
header value.Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.