Search in sources :

Example 1 with CallbackHandlerImpl

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);
}
Also used : AuthConfigProvider(javax.security.auth.message.config.AuthConfigProvider) CallbackHandlerImpl(org.apache.catalina.authenticator.jaspic.CallbackHandlerImpl) ServerAuthConfig(javax.security.auth.message.config.ServerAuthConfig)

Aggregations

AuthConfigProvider (javax.security.auth.message.config.AuthConfigProvider)1 ServerAuthConfig (javax.security.auth.message.config.ServerAuthConfig)1 CallbackHandlerImpl (org.apache.catalina.authenticator.jaspic.CallbackHandlerImpl)1