Package org.eclipse.jetty.plus.jaas

Examples of org.eclipse.jetty.plus.jaas.JAASLoginService


               
                ConstraintMapping cm = new ConstraintMapping();
                cm.setConstraint(constraint);
                cm.setPathSpec("/webapp/graph-editor/*");
               
                JAASLoginService jaasLogin = new JAASLoginService("TME Graph Editor");
                jaasLogin.setLoginModuleName("ldaploginmodule");
                jaasLogin.setIdentityService(identityService);
               
                ConstraintSecurityHandler securityHandler = new ConstraintSecurityHandler();
                securityHandler.setConstraintMappings(new ConstraintMapping[] {
                    cm
                });
View Full Code Here


     * Configure JAAS realm using login module name "rundecklogin"
     *
     * @param server
     */
    private void configureJAASRealms(final Server server) {
        final JAASLoginService realm = new JAASLoginService();
        realm.setName(REALM_NAME);
        realm.setLoginModuleName(loginmodulename);

        if (null != roleclassnames && !"".equals(roleclassnames.trim())) {
            final String[] strings = roleclassnames.split(",\\s*");
            realm.setRoleClassNames(strings);
        }

        server.addBean(realm);
    }
View Full Code Here

    noAuthenticationConstraint.setAuthenticate(false);
    ConstraintMapping publicConstraintMapping = new ConstraintMapping();
    publicConstraintMapping.setConstraint(noAuthenticationConstraint);
    publicConstraintMapping.setPathSpec("/jax/bundles/fm/prototype/login.ftl");
   
    JAASLoginService loginService = new JAASLoginService("OpenGamma");
    loginService.setLoginModuleName("og");
    server.addBean(loginService);

    ConstraintSecurityHandler securityHandler = new ConstraintSecurityHandler();
    securityHandler.addConstraintMapping(restrictedConstraintMapping);
    securityHandler.addConstraintMapping(publicConstraintMapping);
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.plus.jaas.JAASLoginService

Copyright © 2018 www.massapicom. 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.