Examples of JaasLoginModuleAdapter


Examples of org.nxplanner.security.jaas.JaasLoginModuleAdapter

                String principalClassName = properties.getProperty(JAAS_USER_PRINCIPAL_KEY);
                if (principalClassName == null) {
                    throw new AuthenticationException("principal class name is required for JAAS login modules");
                }
                Class jaasPrincipalClass = Class.forName(principalClassName);
                loginModule = new JaasLoginModuleAdapter(jaasLoginModule, jaasPrincipalClass, options);
            } else {
                Constructor constructor = loginModuleClass.getConstructor(new Class[]{Map.class});
                loginModule = (LoginModule)constructor.newInstance(new Object[]{options});
            }
        } catch (Exception e) {
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.