org.neo4j.server.rest.web.security
Class AuthenticationExceptionMapper

java.lang.Object
  extended by 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.


Constructor Summary
AuthenticationExceptionMapper()
           
 
Method Summary
 javax.ws.rs.core.Response toResponse(AuthenticationException e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationExceptionMapper

public AuthenticationExceptionMapper()
Method Detail

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.