Class AuthenticationException

  • All Implemented Interfaces:

    public class AuthenticationException
    extends BaseServerResponseException
    Represents an HTTP 401 Client Unauthorized response, which means that the client needs to provide credentials, or has provided invalid credentials.

    For security failures, you should use AuthenticationException if you want to indicate that the user could not be authenticated (e.g. credential failures), also known as an authentication failure. You should use ForbiddenOperationException if you want to indicate that the authenticated user does not have permission to perform the requested operation, also known as an authorization failure.

    Note that a complete list of RESTful exceptions is available in the Package Summary.

    See Also:
    Serialized Form