Examples of LoginModuleConfig


Examples of org.glassfish.security.services.config.LoginModuleConfig

            if ("LoginModule".equalsIgnoreCase(provider.getType())) {
              List<SecurityProviderConfig> providerConfig = provider.getSecurityProviderConfig();
              if ((providerConfig != null) && (!providerConfig.isEmpty())) {

                // Create the JAAS AppConfigurationEntry from the LoginModule settings
                LoginModuleConfig lmConfig = (LoginModuleConfig) providerConfig.get(0);
                Map<String, ?> lmOptions = lmConfig.getModuleOptions();
                lmEntries.add(new AppConfigurationEntry(lmConfig.getModuleClass(),
                    getLoginModuleControlFlag(lmConfig.getControlFlag()),lmOptions));

                // Obtain the Realm name for password credential from the LoginModule options
                // Use the first LoginModule with auth-realm (i.e. unable to stack Realms)
                if (usePasswordCredential && (realmName == null)) {
                  String authRealm = (String) lmOptions.get("auth-realm");
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.