Package org.geoserver.security.config

Examples of org.geoserver.security.config.PasswordPolicyConfig


    MaxLengthPanel maxLengthPanel;

    public PasswordPolicyPanel(String id, IModel<PasswordPolicyConfig> model) {
        super(id, model);

        PasswordPolicyConfig pwPolicy = model.getObject();

        //add(new TextField("name").setRequired(true));
        add(new CheckBox("digitRequired"));
        add(new CheckBox("uppercaseRequired"));
        add(new CheckBox("lowercaseRequired"));
        add(new TextField<Integer>("minLength"));

        boolean unlimited = pwPolicy.getMaxLength() == -1;
        add(new AjaxCheckBox("unlimitedMaxLength", new Model(unlimited)) {
           
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                Boolean value = getModelObject();
View Full Code Here

TOP

Related Classes of org.geoserver.security.config.PasswordPolicyConfig

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.