resolvedAuthorizationManagerClassName, resolvedAuditManagerClassName,
resolvedIdentityTrustManagerClassName, resolvedMappingManagerClassName);
target.addService(SecurityManagementService.SERVICE_NAME, securityManagementService).setInitialMode(
ServiceController.Mode.ACTIVE).install();
final SubjectFactoryService subjectFactoryService = new SubjectFactoryService(
resolvedSubjectFactoryClassName);
target.addService(SubjectFactoryService.SERVICE_NAME, subjectFactoryService).addDependency(
SecurityManagementService.SERVICE_NAME, ISecurityManagement.class,
subjectFactoryService.getSecurityManagementInjector())
.setInitialMode(ServiceController.Mode.ACTIVE).install();
// add jaas configuration service
Configuration loginConfig = XMLLoginConfigImpl.getInstance();
final JaasConfigurationService jaasConfigurationService = new JaasConfigurationService(loginConfig);