Package org.apache.catalina.authenticator

Examples of org.apache.catalina.authenticator.BasicAuthenticator


                this.addConstraint(sc);
                this.addSecurityRole("default");

                //Set the proper authenticator
                if ("BASIC".equals(authMethod) ){
                    this.addValve(new BasicAuthenticator());
                } else if ("DIGEST".equals(authMethod) ){
                    this.addValve(new DigestAuthenticator());
                } else if ("CLIENT-CERT".equals(authMethod) ){
                    this.addValve(new SSLAuthenticator());
                } else if ("NONE".equals(authMethod)) {
View Full Code Here


            context.addConstraint(sc);
            context.addSecurityRole("default");

            //Set the proper authenticator
            if ("BASIC".equals(authMethod)) {
                context.addValve(new BasicAuthenticator());
            } else if ("DIGEST".equals(authMethod)) {
                context.addValve(new DigestAuthenticator());
            } else if ("CLIENT-CERT".equals(authMethod)) {
                context.addValve(new SSLAuthenticator());
            } else if ("NONE".equals(authMethod)) {
View Full Code Here

            context.addConstraint(sc);
            context.addSecurityRole("default");

            //Set the proper authenticator
            if ("BASIC".equals(authMethod)) {
                context.addValve(new BasicAuthenticator());
            } else if ("DIGEST".equals(authMethod)) {
                context.addValve(new DigestAuthenticator());
            } else if ("CLIENT-CERT".equals(authMethod)) {
                context.addValve(new SSLAuthenticator());
            } else if ("NONE".equals(authMethod)) {
View Full Code Here

                this.addConstraint(sc);
                this.addSecurityRole("default");

                //Set the proper authenticator
                if ("BASIC".equals(authMethod) ){
                    this.addValve(new BasicAuthenticator());
                } else if ("DIGEST".equals(authMethod) ){
                    this.addValve(new DigestAuthenticator());
                } else if ("CLIENT-CERT".equals(authMethod) ){
                    this.addValve(new SSLAuthenticator());
                } else if ("NONE".equals(authMethod)) {
View Full Code Here

                this.addConstraint(sc);
                this.addSecurityRole("default");

                //Set the proper authenticator
                if ("BASIC".equals(authMethod) ){
                    this.addValve(new BasicAuthenticator());
                } else if ("DIGEST".equals(authMethod) ){
                    this.addValve(new DigestAuthenticator());
                } else if ("CLIENT-CERT".equals(authMethod) ){
                    this.addValve(new SSLAuthenticator());
                }
View Full Code Here

            tomcat.addContext("", System.getProperty("java.io.tmpdir"));

        LoginConfig config = new LoginConfig();
        config.setAuthMethod("BASIC");
        ctx.setLoginConfig(config);
        ctx.getPipeline().addValve(new BasicAuthenticator());
       
        Tomcat.addServlet(ctx, "servlet", new LoginLogoutServlet());
        ctx.addServletMapping("/", "servlet");
       
        MapRealm realm = new MapRealm();
View Full Code Here

        // Configure app for BASIC auth
        LoginConfig lc = new LoginConfig();
        lc.setAuthMethod("BASIC");
        ctx.setLoginConfig(lc);
        ctx.getPipeline().addValve(new BasicAuthenticator());

        // Add ServletContainerInitializer
        ServletContainerInitializer sci = new Bug50015SCI();
        ctx.addServletContainerInitializer(sci, null);
View Full Code Here

            tomcat.addContext("", System.getProperty("java.io.tmpdir"));

        LoginConfig config = new LoginConfig();
        config.setAuthMethod("BASIC");
        ctx.setLoginConfig(config);
        ctx.getPipeline().addValve(new BasicAuthenticator());

        Tomcat.addServlet(ctx, "servlet", new LoginLogoutServlet());
        ctx.addServletMapping("/", "servlet");

        MapRealm realm = new MapRealm();
View Full Code Here

        // Configure app for BASIC auth
        LoginConfig lc = new LoginConfig();
        lc.setAuthMethod("BASIC");
        ctx.setLoginConfig(lc);
        ctx.getPipeline().addValve(new BasicAuthenticator());

        // Add ServletContainerInitializer
        ServletContainerInitializer sci = new Bug50015SCI();
        ctx.addServletContainerInitializer(sci, null);
       
View Full Code Here

                this.addConstraint(sc);
                this.addSecurityRole("default");

                //Set the proper authenticator
                if ("BASIC".equals(authMethod) ){
                    this.addValve(new BasicAuthenticator());
                } else if ("DIGEST".equals(authMethod) ){
                    this.addValve(new DigestAuthenticator());
                } else if ("CLIENT-CERT".equals(authMethod) ){
                    this.addValve(new SSLAuthenticator());
                }
View Full Code Here

TOP

Related Classes of org.apache.catalina.authenticator.BasicAuthenticator

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.