Examples of verify()


Examples of jfun.yan.containers.DefaultContainer.verify()

    public void testRegistersSingleInstance(){
        DefaultContainer yan = new DefaultContainer();
        StringBuffer sb = new StringBuffer();
        yan.registerValue(sb);
        yan.verify();
        assertSame(sb, yan.getInstance(StringBuffer.class));
    }
    public void testGettingComponentWithMissingDependencyFails(){
        SimpleContainer picoContainer = createPicoContainerWithDependsOnTouchableOnly();
        try {
View Full Code Here

Examples of jfun.yan.containers.SimpleContainer.verify()

        }
    }
    public void testVerifyWithMissingDependencyFails(){
      SimpleContainer picoContainer = createPicoContainerWithDependsOnTouchableOnly();
      try {
          picoContainer.verify();
          fail("should need a Touchable");
      } catch (jfun.yan.YanException e) {
      }
  }
    public void testExternallyInstantiatedObjectsCanBeRegistgeredAndLookedUp(){
View Full Code Here

Examples of jfun.yan.lifecycle.DefaultLifecycleManager.verify()

      yan.registerValue(Boolean.valueOf(true));
      yan.registerComponent("target", mybean);
      MyBean bean = (MyBean)yan.getInstance("target");
      assertTrue(bean.is1());
      try{
        man.verify();
      }
      catch(IllegalStateException e){
        return;
      }
      fail("should have failed with illegal state");
View Full Code Here

Examples of mykeynote.keynote.KeyNoteCL.verify()

   
    File assertionFile = new File(base, "resource1.ass");
    File key = new File(base, "key10");
    String answer = "";
    try {
      answer = cl.verify(unique, environmentFile, returnValueFile, assertionFile, key);
    } catch (KeyNoteCLProcessCreationException e) {
      assertNotNull(e);
    } catch (KeyNoteCLException e) {
      assertNotNull(e);
    } catch (InterruptedException e) {
View Full Code Here

Examples of net.schmizz.sshj.signature.Signature.verify()

        Signature signature = Factory.Named.Util.create(trans.getConfig().getSignatureFactories(),
                                                        KeyType.fromKey(hostKey).toString());
        signature.init(hostKey, null);
        signature.update(H, 0, H.length);
        if (!signature.verify(sig))
            throw new TransportException(DisconnectReason.KEY_EXCHANGE_FAILED,
                                         "KeyExchange signature verification failed");
        return true;
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.component.ComponentCompiler.verify()

      ComponentCompiler compiler = ComponentsEnvironment.
        getComponentManager(componentKey).getComponentCompiler();
      pushCurrentComponentElement(element);
      try
      {
        compiler.verify(component, this);
      }
      finally
      {
        popCurrentComponentElement();
      }
View Full Code Here

Examples of net.tomp2p.connection.SignatureFactory.verify()

   
    // sign the data
    SignatureCodec signature = signatureFactory.sign(protectionKey.getPrivate(), testData.buffer());
   
    // verify the data with the signature
    boolean isVerified = signatureFactory.verify(protectionKey.getPublic(), testData.buffer(), signature);
   
    // check if verifying worked
    Assert.assertTrue(isVerified);
  }
 
View Full Code Here

Examples of net.tomp2p.storage.Data.verify()

    Data retData = p1.get(lKey).setDomainKey(dKey).setContentKey(cKey).setVersionKey(vKey).start()
        .awaitUninterruptibly().getData();
    Assert.assertEquals("data1", (String) retData.object());
    Assert.assertEquals(keyPair1.getPublic(), retData.publicKey());
    // verify data signature
    Assert.assertTrue(retData.verify(keyPair1.getPublic(), factory));

    // change data signature to keys 2 using same data, sign with new key 2
    data = new Data("data1").ttlSeconds(ttl).setProtectedEntry().sign(keyPair2, factory);
    // change content protection keys to keys 2
    // data.publicKey(keyPair2.getPublic()); is already done with data.sign(...)
View Full Code Here

Examples of org.apache.abdera.security.Signature.verify()

    ByteArrayOutputStream out = new ByteArrayOutputStream();
    entry.writeTo(out); // do not use the pretty writer, it will break the signature
    ByteArrayInputStream bais = new ByteArrayInputStream(out.toByteArray());
    Document<Entry> entry_doc = abdera.getParser().parse(bais);
    entry = entry_doc.getRoot();
    assertTrue(sig.verify(entry, null))// the signature better still be valid
   
    entry.setTitle("Change the title");
   
    assertFalse(sig.verify(entry, null)); // the signature better be invalid
   
View Full Code Here

Examples of org.apache.bcel.verifier.statics.Pass3aVerifier.verify()

        p3av = (Pass3aVerifier) (p3avs.get(key));
        if (p3avs.get(key) == null) {
            p3av = new Pass3aVerifier(this, method_no);
            p3avs.put(key, p3av);
        }
        return p3av.verify();
    }


    /** Returns the VerificationResult for the given pass. */
    public VerificationResult doPass3b( int method_no ) {
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.