use of org.apache.catalina.authenticator.jaspic.CallbackHandlerImpl in project tomee by apache.
the class TomEESecurityContext method getServerAuthContext.
private ServerAuthContext getServerAuthContext(final HttpServletRequest request) throws AuthException {
final String appContext = toAppContext(request.getServletContext(), request.getContextPath());
final AuthConfigProvider authConfigProvider = AuthConfigFactory.getFactory().getConfigProvider("HttpServlet", appContext, null);
final ServerAuthConfig serverAuthConfig = authConfigProvider.getServerAuthConfig("HttpServlet", appContext, new CallbackHandlerImpl());
return serverAuthConfig.getAuthContext(null, null, null);
}
Aggregations