Class UnauthenticatedExceptionExceptionMapper

java.lang.Object
org.apache.shiro.web.jaxrs.UnauthenticatedExceptionExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<org.apache.shiro.authz.UnauthenticatedException>

public class UnauthenticatedExceptionExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<org.apache.shiro.authz.UnauthenticatedException>
JAX-RS exception mapper used to map Shiro UnauthenticatedException to HTTP status codes. UnauthenticatedException will be mapped to 403.
Since:
1.4
  • Constructor Details

    • UnauthenticatedExceptionExceptionMapper

      public UnauthenticatedExceptionExceptionMapper()
  • Method Details

    • toResponse

      public javax.ws.rs.core.Response toResponse(org.apache.shiro.authz.UnauthenticatedException exception)
      Specified by:
      toResponse in interface javax.ws.rs.ext.ExceptionMapper<org.apache.shiro.authz.UnauthenticatedException>