registerTransformers_1_1_0(subsystemRegistration);
registerTransformers_1_2_0(subsystemRegistration);
}
private void registerTransformers_1_1_0(SubsystemRegistration subsystemRegistration) {
final ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance();
builder.getAttributeBuilder().addRejectCheck(RejectAttributeChecker.SIMPLE_EXPRESSIONS, SecuritySubsystemRootResourceDefinition.DEEP_COPY_SUBJECT_MODE);
final ResourceTransformationDescriptionBuilder securityDomain = builder.addChildResource(SECURITY_DOMAIN_PATH);
securityDomain.getAttributeBuilder().addRejectCheck(RejectAttributeChecker.SIMPLE_EXPRESSIONS, SecurityDomainResourceDefinition.CACHE_TYPE).end();
final ModulesToAttributeTransformer authClassicLoginModule = new ModulesToAttributeTransformer(Constants.LOGIN_MODULE, Constants.LOGIN_MODULES);
registerModuleTransformer(securityDomain, PATH_CLASSIC_AUTHENTICATION, authClassicLoginModule,
ChildResourceTransformersRegistrar.createBuilder()
.addRejectExpressions(Constants.FLAG, Constants.MODULE_OPTIONS)
.build());
final ModulesToAttributeTransformer policyModule = new ModulesToAttributeTransformer(Constants.POLICY_MODULE, Constants.POLICY_MODULES);
registerModuleTransformer(securityDomain, PATH_AUTHORIZATION_CLASSIC, policyModule,
ChildResourceTransformersRegistrar.createBuilder()
.addRejectExpressions(Constants.FLAG, Constants.MODULE_OPTIONS)
.build());
final ModulesToAttributeTransformer mappingModule = new ModulesToAttributeTransformer(Constants.MAPPING_MODULE, Constants.MAPPING_MODULES);
registerModuleTransformer(securityDomain, PATH_MAPPING_CLASSIC, mappingModule,
ChildResourceTransformersRegistrar.createBuilder()
.addRejectExpressions(Constants.TYPE, Constants.MODULE_OPTIONS)
.build());
final ModulesToAttributeTransformer providerModule = new ModulesToAttributeTransformer(Constants.PROVIDER_MODULE, Constants.PROVIDER_MODULES);
registerModuleTransformer(securityDomain, PATH_AUDIT_CLASSIC, providerModule,
ChildResourceTransformersRegistrar.createBuilder()
.addRejectExpressions(Constants.MODULE_OPTIONS)
.build());
final ModulesToAttributeTransformer identityTrustModule = new ModulesToAttributeTransformer(Constants.TRUST_MODULE, Constants.TRUST_MODULES);
registerModuleTransformer(securityDomain, PATH_IDENTITY_TRUST_CLASSIC, identityTrustModule,
ChildResourceTransformersRegistrar.createBuilder()
.addRejectExpressions(Constants.FLAG, Constants.MODULE_OPTIONS)
.build());
final ModulesToAttributeTransformer aclModule = new ModulesToAttributeTransformer(Constants.ACL_MODULE, Constants.ACL_MODULES);
registerModuleTransformer(securityDomain, ACL_PATH, aclModule,
ChildResourceTransformersRegistrar.createBuilder()
.addRejectExpressions(Constants.FLAG, Constants.MODULE_OPTIONS)
.build());
final ModulesToAttributeTransformer authModule = new JaspiModulesToAttributeTransformer(Constants.AUTH_MODULE, Constants.AUTH_MODULES);
ResourceTransformationDescriptionBuilder jaspiReg = registerModuleTransformer(securityDomain, PATH_JASPI_AUTH, authModule,
ChildResourceTransformersRegistrar.createBuilder()
.addRejectExpressions(Constants.FLAG, Constants.MODULE_OPTIONS)
.addRejectIfDefined(Constants.MODULE)
.build());