Examples of validate()


Examples of javax.xml.crypto.dsig.XMLSignature.SignatureValue.validate()

            handler.start();

            // first check signature value, see
            // https://www.isecpartners.com/media/12012/XMLDSIG_Command_Injection.pdf
            SignatureValue sigValue = signature.getSignatureValue();
            boolean sv = sigValue.validate(valContext);
            if (!sv) {
                handler.signatureValueValidationFailed(sigValue);
            }

            // then the references!
View Full Code Here

Examples of javax.xml.validation.Validator.validate()

        }

        if (doValidate) {
            try {
                Validator v = getMetadataValidator();
                v.validate(new DOMSource(document));
            } catch (SAXException ex) {
                Message msg = new Message("METADATA_VALIDATION_ERROR_EXC", LOG);
                throw new ConfigurationException(msg, ex);
            }
        }
View Full Code Here

Examples of jersey.repackaged.jsr166e.StampedLock.validate()

        long stamp = lock.tryOptimisticRead();
        Object[] items;
        if (index >= 0 && (items = array) != null &&
            index < count && index < items.length) {
            @SuppressWarnings("unchecked") E e = (E)items[index];
            if (lock.validate(stamp))
                return e;
        }
        return lockedGet(index);
    }
View Full Code Here

Examples of jni.Argument.validate()

                    argument.setExpression();

                    _object = (GenericJNIActor) argument.getContainer();

                    try {
                        argument.validate();
                    } catch (IllegalActionException e) {
                        MessageHandler.error("TRT :No way to update MoML! : ",
                                e);
                    }
                }
View Full Code Here

Examples of jvalidations.DefaultValidationBuilder.validate()

            Customer customer = new Customer();
            Customer.ValidationReport report = null; //its only a demo
            DefaultValidationBuilder builder = new DefaultValidationBuilder();
            customer.buildValidation(builder, report);
            builder.removeTags("Due Diligence");
            builder.validate(customer);
        }
        /**
         * And now, minus your due diligence,  you can have your very own credit crunch :-)
         */
    }//ignore
View Full Code Here

Examples of kiss.lang.Environment.validate()

    assertEquals(1,e2.getResult());
  }
 
  @Test public void testValidity() {
    Environment e=Environment.EMPTY;
    e.validate();
   
    e=Def.create(Symbol.intern("foo"),Constant.create(1)).compute(e);
    e.validate();
   
    e=Def.create(Symbol.intern("bar"),Lookup.create("foo")).compute(e);
View Full Code Here

Examples of kiss.lang.Type.validate()

  public void validate() {
    int n=types.length;
    if (n<2) throw new KissException("Union must have at least two members");
    for (int i=0; i<n; i++) {
      Type t=types[i];
      t.validate();
      if (t instanceof Nothing) throw new KissException(this+ " should not contain Nothing type");
    }
  }

  @Override
View Full Code Here

Examples of krati.core.StoreConfig.validate()

       
        double hashLoadFactor = StoreParams.HASH_LOAD_FACTOR_DEFAULT - 0.07;
        config.setHashLoadFactor(hashLoadFactor);
        assertEquals(hashLoadFactor, config.getHashLoadFactor());
       
        config.validate();
        config.save();
       
        StoreConfig config2 = new StoreConfig(getHomeDir(), getInitialCapacity());
       
        assertEquals(config.isIndexesCached(), config2.isIndexesCached());
View Full Code Here

Examples of krati.core.StorePartitionConfig.validate()

       
        double hashLoadFactor = StoreParams.HASH_LOAD_FACTOR_DEFAULT - 0.07;
        config.setHashLoadFactor(hashLoadFactor);
        assertEquals(hashLoadFactor, config.getHashLoadFactor());
       
        config.validate();
        config.save();
       
        StorePartitionConfig config2 = new StorePartitionConfig(getHomeDir(), partitionStart, partitionCount);
       
        assertEquals(config.isIndexesCached(), config2.isIndexesCached());
View Full Code Here

Examples of l2p.gameserver.model.L2RoundTerritory.validate()

    {
      DatabaseUtils.closeDatabaseCSR(con, statement, rset);
    }
    for(L2Territory t : _locations.values())
    {
      t.validate();
    }
    _log.info("TerritoryTable: Loaded " + _locations.size() + " locations");
  }

  public void registerZones()
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.