Package org.platformlayer.ops.firewall

Examples of org.platformlayer.ops.firewall.Sanitizer.clean()


    Sanitizer sanitizer = new Sanitizer(Decision.Throw, '_');
    sanitizer.allowAlphanumeric();
    sanitizer.allowCharacters("!@$%^&*()[]{}_-+|<>,.");
    sanitizer.setDecision("#= ", Decision.Throw);
    for (Entry<String, String> entry : metadata.entrySet()) {
      String key = sanitizer.clean(entry.getKey());
      String value = sanitizer.clean(entry.getValue());
      sb.append("# " + key + "=" + value + "\n");
    }
    sb.append("# __PLATFORMLAYER__METADATA__END__\n");

View Full Code Here


    sanitizer.allowAlphanumeric();
    sanitizer.allowCharacters("!@$%^&*()[]{}_-+|<>,.");
    sanitizer.setDecision("#= ", Decision.Throw);
    for (Entry<String, String> entry : metadata.entrySet()) {
      String key = sanitizer.clean(entry.getKey());
      String value = sanitizer.clean(entry.getValue());
      sb.append("# " + key + "=" + value + "\n");
    }
    sb.append("# __PLATFORMLAYER__METADATA__END__\n");

    sb.append("set -e\n");
View Full Code Here

  private static String sanitizeX500Principal(X500Principal issuer) {
    Sanitizer sanitizer = new Sanitizer(Decision.Replace, '_');
    sanitizer.allowAlphanumeric().setCombineBlocked(true);

    return sanitizer.clean(issuer.getName());
  }

  @Override
  protected void addChildren() throws OpsException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.