use of com.sun.jersey.api.core.HttpRequestContext in project neo4j by neo4j.
the class AuthorizedRequestWrapper method getSecurityContextFromHttpContext.
public static SecurityContext getSecurityContextFromHttpContext(HttpContext httpContext) {
HttpRequestContext requestContext = httpContext.getRequest();
Principal principal = requestContext.getUserPrincipal();
return getSecurityContextFromUserPrincipal(principal);
}
Aggregations