org.neo4j.server.rest.web.security
Class AuthenticationExceptionMapper
java.lang.Object
org.neo4j.server.rest.web.security.AuthenticationExceptionMapper
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<AuthenticationException>
@Provider
public class AuthenticationExceptionMapper
- extends Object
- implements javax.ws.rs.ext.ExceptionMapper<AuthenticationException>
Map an authentication exception to an HTTP 401 response, optionally including
the realm for a credentials challenge at the client.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthenticationExceptionMapper
public AuthenticationExceptionMapper()
toResponse
public javax.ws.rs.core.Response toResponse(AuthenticationException e)
- Specified by:
toResponse
in interface javax.ws.rs.ext.ExceptionMapper<AuthenticationException>
Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.