Examples of JaasLoginModuleConfiguration


Examples of org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration

        entries.remove(factory.getConfigurationName());
        log.debug("Removed Application Configuration Entry " + factory.getConfigurationName());
    }

    private final void addConfiguration(ConfigurationEntryFactory factory) {
        JaasLoginModuleConfiguration config = factory.generateConfiguration();
        if(config.getLoginDomainName() == null) {
            throw new IllegalArgumentException("A login module to be registered standalone must have a domain name!");
        }
        if (entries.containsKey(factory.getConfigurationName())) {
            throw new java.lang.IllegalArgumentException("ConfigurationEntry already registered");
        }
        AppConfigurationEntry ace = new AppConfigurationEntry(config.getLoginModuleClassName(), config.getFlag().getFlag(), config.getOptions());

        entries.put(factory.getConfigurationName(), ace);
        log.debug("Added Application Configuration Entry " + factory.getConfigurationName());
    }
View Full Code Here

Examples of org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration

                throw new IllegalStateException("Error in realm: one security realm cannot contain multiple login modules for the same login domain");
            } else {
                domainNames.add(loginModule.getLoginDomainName());
            }
        }
        JaasLoginModuleConfiguration config = new JaasLoginModuleConfiguration(loginModule.getLoginModuleClass(), controlFlag, options, loginModule.isServerSide(), loginModule.getLoginDomainName(), loginModule.isWrapPrincipals(), loginModule.getClassLoader());
        loginModuleConfigurations.add(config);

        if (next != null) {
            next.configure(domainNames, loginModuleConfigurations, kernel, serverInfo, classLoader);
        }
View Full Code Here

Examples of org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration

    /**
     * Strips out stuff that isn't serializable so this can be safely passed to
     * a remote server.
     */
    public static JaasLoginModuleConfiguration getSerializableCopy(JaasLoginModuleConfiguration config) {
        return new JaasLoginModuleConfiguration(config.getLoginModuleClassName(),
                config.getFlag(),
                LoginUtils.getSerializableCopy(config.getOptions()),
                config.isServerSide(),
                config.getLoginDomainName(),
                config.isWrapPrincipals(),
View Full Code Here

Examples of org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration

    public String getConfigurationName() {
        return applicationConfigName;
    }

    public JaasLoginModuleConfiguration generateConfiguration() {
        return new JaasLoginModuleConfiguration(module.getLoginModuleClass(), controlFlag, module.getOptions(), module.isServerSide(), applicationConfigName, wrapPrincipals, module.getClassLoader());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.