Search in sources :

Example 1 with AuthenticationInfo

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;
}
Also used : AppConfigurationEntry(javax.security.auth.login.AppConfigurationEntry) BaseAuthenticationInfo(org.jboss.security.auth.login.BaseAuthenticationInfo) JASPIAuthenticationInfo(org.jboss.security.auth.login.JASPIAuthenticationInfo) AuthenticationInfo(org.jboss.security.auth.login.AuthenticationInfo)

Aggregations

AppConfigurationEntry (javax.security.auth.login.AppConfigurationEntry)1 AuthenticationInfo (org.jboss.security.auth.login.AuthenticationInfo)1 BaseAuthenticationInfo (org.jboss.security.auth.login.BaseAuthenticationInfo)1 JASPIAuthenticationInfo (org.jboss.security.auth.login.JASPIAuthenticationInfo)1