processorTarget.addDeploymentProcessor( SecurityExtension.SUBSYSTEM_NAME, Phase.INSTALL, 0, new AuthInstaller() );
}
protected void addTorqueBoxSecurityDomainService(final OperationContext context, ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> newControllers) {
final ApplicationPolicy applicationPolicy = new ApplicationPolicy( TORQUEBOX_DOMAIN );
AuthenticationInfo authenticationInfo = new AuthenticationInfo( TORQUEBOX_DOMAIN );
// TODO: Can we feed usernames/passwords into the options hash?
Map<String, Object> options = new HashMap<String, Object>();
AppConfigurationEntry entry = new AppConfigurationEntry( ModulesMap.AUTHENTICATION_MAP.get( "Simple" ), LoginModuleControlFlag.REQUIRED, options );
authenticationInfo.addAppConfigurationEntry( entry );
applicationPolicy.setAuthenticationInfo( authenticationInfo );
// TODO: Do we need to bother with a JSSESecurityDomain? Null in this
// case may be OK
// TODO: Null cache type?
final SecurityDomainService securityDomainService = new SecurityDomainService( TORQUEBOX_DOMAIN, applicationPolicy, null, null );