Package org.acegisecurity

Examples of org.acegisecurity.ConfigAttributeEditor


  private void convertToConfigAttributeDefinition () {
    Iterator it = this.urlMap.keySet().iterator();
    while (it.hasNext()) {
      String strUrl = (String)it.next();
      String authStr = (String)this.urlMap.get(strUrl);
      ConfigAttributeEditor configAttrEditor = new ConfigAttributeEditor();
      configAttrEditor.setAsText(authStr);
      this.urlMap.put(strUrl, configAttrEditor.getValue());
    }
  }
View Full Code Here


                if(!StringUtils.hasLength(name) || !StringUtils.hasLength(value)) {
                    throw new IllegalArgumentException("Failed to parse a valid name/value pair from " + line);
                }

                // Convert value to series of security configuration attributes
                ConfigAttributeEditor configAttribEd = new ConfigAttributeEditor();
                configAttribEd.setAsText(value);

                ConfigAttributeDefinition attr = (ConfigAttributeDefinition) configAttribEd
                    .getValue();

                // Register the regular expression and its attribute
                source.addSecureUrl(name, attr);
            }
View Full Code Here

            propertiesEditor.setAsText(s);

            Properties props = (Properties) propertiesEditor.getValue();

            // Now we have properties, process each one individually
            ConfigAttributeEditor configAttribEd = new ConfigAttributeEditor();

            for (Iterator iter = props.keySet().iterator(); iter.hasNext();) {
                String name = (String) iter.next();
                String value = props.getProperty(name);

                // Convert value to series of security configuration attributes
                configAttribEd.setAsText(value);

                ConfigAttributeDefinition attr = (ConfigAttributeDefinition) configAttribEd
                    .getValue();

                // Register name and attribute
                source.addSecureMethod(name, attr);
            }
View Full Code Here

TOP

Related Classes of org.acegisecurity.ConfigAttributeEditor

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.