Authorization HTTP header is missing in the request,Authorization header - then the exception indicates
that authorization has been refused for the credentials contained in the request header.| Modifier and Type | Field and Description |
|---|---|
| private transient List | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | NotAuthorizedException(final Object
authorization challenge applicable to the resource requested by the client. challenge, final Object... additional authorization challenge applicable to the requested resource. moreChallenges)Construct a new "not authorized" exception. |
| public | NotAuthorizedException(final String
the detail message (which is saved for later retrieval by the message, final Object getMessage() method).authorization challenge applicable to the resource requested by the client. challenge, final Object... additional authorization challenge applicable to the requested resource. moreChallenges)Construct a new "not authorized" exception. |
| public | NotAuthorizedException(final Response
error response. response)Construct a new "not authorized" exception. |
| public | NotAuthorizedException(final String
the detail message (which is saved for later retrieval by the message, final Response getMessage() method).error response. response)Construct a new "not authorized" exception. |
| public | NotAuthorizedException(final Throwable
the underlying cause of the exception. cause, final Object authorization challenge applicable to the requested resource. challenge, final Object... additional authorization challenge applicable to the requested resource. moreChallenges)Construct a new "not authorized" exception. |
| public | NotAuthorizedException(final String
the detail message (which is saved for later retrieval by the message, final Throwable getMessage() method).the underlying cause of the exception. cause, final Object authorization challenge applicable to the requested resource. challenge, final Object... additional authorization challenge applicable to the requested resource. moreChallenges)Construct a new "not authorized" exception. |
| public | NotAuthorizedException(final Response
error response. response, final Throwable the underlying cause of the exception. cause)Construct a new "not authorized" exception. |
| public | NotAuthorizedException(final String
the detail message (which is saved for later retrieval by the message, final Response getMessage() method).error response. response, final Throwable the underlying cause of the exception. cause)Construct a new "not authorized" exception. |
| Modifier and Type | Method and Description |
|---|---|
| private static List | |
| private static Response | |
| public List | Returns: list of authorization challenges applicable to the resource requested by the client.Get the list of authorization challenges associated with the exception and applicable to the resource requested by the client. |
| challenges | back to summary |
|---|---|
| private transient List<Object> challenges | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NotAuthorizedException | back to summary |
|---|---|
| public NotAuthorizedException(final Object challenge, final Object... moreChallenges) Construct a new "not authorized" exception.
| |
| NotAuthorizedException | back to summary |
|---|---|
| public NotAuthorizedException(final String message, final Object challenge, final Object... moreChallenges) Construct a new "not authorized" exception.
| |
| NotAuthorizedException | back to summary |
|---|---|
| public NotAuthorizedException(final Response response) Construct a new "not authorized" exception.
| |
| NotAuthorizedException | back to summary |
|---|---|
| public NotAuthorizedException(final String message, final Response response) Construct a new "not authorized" exception.
| |
| NotAuthorizedException | back to summary |
|---|---|
| public NotAuthorizedException(final Throwable cause, final Object challenge, final Object... moreChallenges) Construct a new "not authorized" exception. | |
| NotAuthorizedException | back to summary |
|---|---|
| public NotAuthorizedException(final String message, final Throwable cause, final Object challenge, final Object... moreChallenges) Construct a new "not authorized" exception.
| |
| NotAuthorizedException | back to summary |
|---|---|
| public NotAuthorizedException(final Response response, final Throwable cause) Construct a new "not authorized" exception.
| |
| NotAuthorizedException | back to summary |
|---|---|
| public NotAuthorizedException(final String message, final Response response, final Throwable cause) Construct a new "not authorized" exception.
| |
| cacheChallenges | back to summary |
|---|---|
| private static List | |
| createUnauthorizedResponse | back to summary |
|---|---|
| private static Response createUnauthorizedResponse(final Object challenge, final Object[] otherChallenges) | |
| getChallenges | back to summary |
|---|---|
| public List Get the list of authorization challenges associated with the exception and applicable to the resource requested by the client. | |