Class InvalidTokenExceptionMapper
java.lang.Object
com.atlassian.crowd.plugin.rest.exception.mapper.InvalidTokenExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<InvalidTokenException>
@Provider
public class InvalidTokenExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<InvalidTokenException>
Maps an
InvalidTokenException
to a 401 (Unauthorized) status.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
toResponse
(InvalidTokenException exception)
-
Constructor Details
-
InvalidTokenExceptionMapper
public InvalidTokenExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<InvalidTokenException>
-