Examples of verify()


Examples of org.drools.compiler.kie.builder.impl.KieProject.verify()

            }

            KieContainerImpl kContainer = (KieContainerImpl) ks.newKieContainer(kModule.getReleaseId());

            KieProject kieProject = kContainer.getKieProject();
            ResultsImpl messages = kieProject.verify();

            List<Message> errors = messages.filterMessages(Message.Level.ERROR);
            if (!errors.isEmpty()) {
                for (Message error : errors) {
                    getLog().error(error.toString());
View Full Code Here

Examples of org.drools.guvnor.server.util.VerifierRunner.verify()

                                                 RoleTypes.PACKAGE_DEVELOPER );
        }

        String drl = this.buildPackageSource( packageUUID );
        VerifierRunner runner = new VerifierRunner();
        return runner.verify( drl,
                              VerifierConfiguration.VERIFYING_SCOPE_KNOWLEDGE_PACKAGE );
    }

    @WebRemote
    @Restrict("#{identity.loggedIn}")
View Full Code Here

Examples of org.easymock.IMocksControl.verify()

        control.replay();
        proxy.createSequence(source,
                             getTo(),
                             RMUtils.createReference(Names.WSA_ANONYMOUS_ADDRESS),
                             ContextUtils.WSA_OBJECT_FACTORY.createRelatesToType());
        control.verify();
        assertTrue("expected send",  binding.isSent());
    }
   
    public void testCreateSequenceOnClientOfferAccepted() throws Exception {
        TestSoapClientBinding binding = new TestSoapClientBinding(bus, epr);
View Full Code Here

Examples of org.easymock.MockControl.verify()

                                                               getTransportManager()));
        factory.setServiceClass(EchoImpl.class);
       
        factory.afterPropertiesSet();
       
        control.verify();
    }
   

    public void testInterface()
        throws Exception
View Full Code Here

Examples of org.easymock.classextension.IMocksControl.verify()

        seq.isLastMessage();
        expectLastCall().andReturn(false);
       
        control.replay();
        rmps.setSequence(seq);
        control.verify();
       
        SequenceType s = rmps.getSequence();
        assertNotNull(s);
        assertSame(s.getIdentifier(), sid);
        assertEquals(s.getMessageNumber(), BigInteger.TEN);
View Full Code Here

Examples of org.ejbca.core.protocol.CVCRequestMessage.verify()

        }
        CVCRequestMessage reqmsg = new CVCRequestMessage(cvccert.getDEREncoded());
        reqmsg.setUsername(username);
        reqmsg.setPassword(password);
        // Popo is really actually verified by the CA (in RSASignSessionBean) as well
        if (reqmsg.verify() == false) {
          log.debug("CVC POPO verification Failed");
          throw new SignRequestSignatureException("Invalid inner signature in CVCRequest, popo-verification failed.");
        } else {
          log.debug("POPO verification successful");         
        }
View Full Code Here

Examples of org.ejbca.core.protocol.PKCS10RequestMessage.verify()

   
    public void test05KeyToolP10() throws Exception {
        log.trace(">test05KeyToolP10()");
        PKCS10RequestMessage msg = new PKCS10RequestMessage(keytoolp10);

        boolean ret = msg.verify();
        assertTrue(ret);
        String dn = msg.getRequestDN();
        log.debug("DN: " + dn);
        assertEquals("CN=Test,O=AnaTom,C=SE", dn);
        String pwd = msg.getPassword();
View Full Code Here

Examples of org.ejbca.core.protocol.scep.ScepRequestMessage.verify()

                        if (reqmsg.requireKeyInfo()) {
                            // scep encrypts message with the RAs certificate
                            reqmsg.setKeyInfo(racert, rapriv, cryptProvider);
                        }
                        // Verify the request
                        if (reqmsg.verify() == false) {
                          String msg = "POPO verification failed.";
                            log.error(msg);
                            throw new SignRequestSignatureException(msg);
                        }
                        String username = reqmsg.getUsername();
View Full Code Here

Examples of org.ejbca.cvc.CVCAuthenticatedRequest.verify()

                  // Only allow renewal if the old certificate is valid
                  PublicKey pk = getCVPublicKey(admin, cert);
                  if (log.isDebugEnabled()) {
                    log.debug("Trying to verify the outer signature with an old certificate, fp: "+CertTools.getFingerprintAsString(cert));                   
                  }
                  authreq.verify(pk);
                  log.debug("Verified outer signature");
                  // Yes we did it, we can move on to the next step because the outer signature was actually created with some old certificate
                  verifiedOuter = true;
                  if (ejbhelper.checkValidityAndSetUserPassword(admin, cert, username, password)) {
                    // If we managed to verify the certificate we will break out of the loop                 
View Full Code Here

Examples of org.ejbca.cvc.CardVerifiableCertificate.verify()

  private void checkInnerCollision(PublicKey pk, CVCertificate innerreq, String holderref) throws AuthorizationDeniedException {
    // Check to see that the inner signature does not verify using an old certificate (public key)
    // because that means the same keys were used, and that is not allowed according to the EU policy
    CardVerifiableCertificate innercert = new CardVerifiableCertificate(innerreq);
    try {
      innercert.verify(pk);                   
      String msg = intres.getLocalizedMessage("cvc.error.renewsamekeys", holderref);             
      log.info(msg);
      throw new AuthorizationDeniedException(msg);
    } catch (SignatureException e) {
      // It was good if the verification failed
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.