this.authenticator = new Authenticator();
this.authenticator.enableLogging( this.getLogger() );
this.authenticator.service( this.manager );
this.resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
ContextManager contextManager;
contextManager = (ContextManager) this.manager.lookup(ContextManager.ROLE);
// add the provider for the authentication context
try {
AuthenticationContextProvider contextProvider = new AuthenticationContextProvider();
contextManager.addSessionContextProvider(contextProvider, AuthenticationConstants.SESSION_CONTEXT_NAME);
} catch (ProcessingException local) {
throw new ServiceException("Unable to register provider for authentication context.", local);
}
}