Class OAuth1Exception

  • All Implemented Interfaces:
    Serializable

    public class OAuth1Exception
    extends jakarta.ws.rs.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).
    Author:
    Martin Matula, Miroslav Fuksa
    See Also:
    Serialized Form
    • Constructor Detail

      • OAuth1Exception

        public OAuth1Exception​(jakarta.ws.rs.core.Response.Status status,
                               String wwwAuthHeader)
        Create a new exception.
        Parameters:
        status - Response status.
        wwwAuthHeader - Authorization header value of the request that cause the exception.
    • Method Detail

      • getStatus

        public jakarta.ws.rs.core.Response.Status getStatus()
        Get the status of the error response.
        Returns:
        Response status code.
      • getWwwAuthHeader

        public String getWwwAuthHeader()
        Get the WWW-Authenticate header of the request that cause the exception.
        Returns:
        WWW-Authenticate header value.