Search in sources :

Example 1 with HttpRequestContext

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);
}
Also used : HttpRequestContext(com.sun.jersey.api.core.HttpRequestContext) Principal(java.security.Principal)

Aggregations

HttpRequestContext (com.sun.jersey.api.core.HttpRequestContext)1 Principal (java.security.Principal)1