Examples of Validator


Examples of speculoos.valid.Validator

      push(rv);
    }

    public void endElement(String uri, String localName, String qName)
        throws SAXException {
      Validator v = (Validator) pop();
      ((MapperCollector) current).addMapper(v);
    }

Examples of sun.security.validator.Validator

    public static void main(String[] args) throws Exception {

        KeyStore ks = KeyStore.getInstance("JKS");
        ks.load(new ByteArrayInputStream(ca), "changeit".toCharArray());
        Validator v = Validator.getInstance
            (Validator.TYPE_PKIX, Validator.VAR_GENERIC, ks);
        X509Certificate[] chain = createPath();
        for (X509Certificate c: v.validate(chain)) {
            System.out.println("   " + c.getSubjectX500Principal() +
                    " issued by " + c.getIssuerX500Principal());
        }
    }

Examples of xnap.util.prefs.Validator

    }

    protected void setProperty(String key, String newValue, boolean validate)
    {
  if (validate) {
      Validator v = (Validator)validatorsByKey.get(namespace + key);
      if (v != null) {
    try {
        v.validate(newValue);
    }
    catch (IllegalArgumentException e) {
        logger.debug("invalid value: " + namespace + key + " = "
         + newValue, e);
        return;
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.