use of org.jboss.security.auth.login.AuthenticationInfo in project wildfly by wildfly.
the class SecurityDomainAdd method processClassicAuth.
private boolean processClassicAuth(OperationContext context, String securityDomain, ModelNode node, ApplicationPolicy applicationPolicy) throws OperationFailedException {
node = peek(node, AUTHENTICATION, CLASSIC);
if (node == null) {
return false;
}
final AuthenticationInfo authenticationInfo = new AuthenticationInfo(securityDomain);
if (node.hasDefined(Constants.LOGIN_MODULE)) {
processLoginModules(context, node.get(LOGIN_MODULE), authenticationInfo, new LoginModuleContainer() {
public void addAppConfigurationEntry(AppConfigurationEntry entry) {
authenticationInfo.add(entry);
}
});
}
//Check for module
applicationPolicy.setAuthenticationInfo(authenticationInfo);
return true;
}
Aggregations