Package com.sslexplorer.boot

Examples of com.sslexplorer.boot.PropertyDefinition


        // Register the new authentication scheme
        AuthenticationSchemeManager.getInstance().registerScheme("RADIUS", RADIUSAuthenticationScheme.class, "radius");
       
        // Register the new property definitions

        PropertyDefinition serverHostName = new DefaultPropertyDefinition(PropertyDefinition.TYPE_STRING, "radius.serverHostName", "",
                        false, 200, "localhost", 2, 10, "radius");
        ContextHolder.getContext().getPropertyDatabase().registerPropertyDefinition(serverHostName);
        PropertyDefinition authenticationPort = new DefaultPropertyDefinition(PropertyDefinition.TYPE_INTEGER, "radius.authenticationPort", "",
                        false, 200, "1812", 2, 20, "radius");
        ContextHolder.getContext().getPropertyDatabase().registerPropertyDefinition(authenticationPort);
        PropertyDefinition accountingPort = new DefaultPropertyDefinition(PropertyDefinition.TYPE_INTEGER, "radius.accountingPort", "",
                        false, 200, "1813", 2, 30, "radius");
        ContextHolder.getContext().getPropertyDatabase().registerPropertyDefinition(accountingPort);
        PropertyDefinition sharedSecret = new DefaultPropertyDefinition(PropertyDefinition.TYPE_STRING, "radius.sharedSecret", "",
                        false, 200, "shared_secret", 2, 40, "radius");
        ContextHolder.getContext().getPropertyDatabase().registerPropertyDefinition(sharedSecret);
        PropertyDefinition authenticationMethod = new DefaultPropertyDefinition(PropertyDefinition.TYPE_LIST, "radius.authenticationMethod", "chap,ppp",
                        false, 200, "chap", 2, 50, "radius");
        ContextHolder.getContext().getPropertyDatabase().registerPropertyDefinition(authenticationMethod);
       
        // Add the new menu items
        coreServlet.addMenuItem("setup", new MenuItem("radiusConfiguration", "radius", "/showRADIUSConfiguration.do", true, true,
View Full Code Here

TOP

Related Classes of com.sslexplorer.boot.PropertyDefinition

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.