Examples of verify()


Examples of com.auth0.jwt.JWTVerifier.verify()

   
    Map<String, Object> verify;
    try {

      verify = jwtVerifier.verify(token);
      String payload = (String) verify.get("$");
      @SuppressWarnings("unchecked")
      Map<String, String> map = new ObjectMapper().readValue(payload, Map.class);
      return map;
View Full Code Here

Examples of com.bitsofproof.supernode.common.ECKeyPair.verify()

    random.nextBytes (data);
    byte[] signature = key.sign (data);
    long cpu = -mxb.getCurrentThreadUserTime ();
    for ( int i = 0; i < 100; ++i )
    {
      assertTrue (key.verify (data, signature));
    }
    cpu += mxb.getCurrentThreadUserTime ();
    double speed = 100.0 / (cpu / 10.0e9);
    log.info ("ECDSA validation speed : " + speed + " signatures/second");
    assertTrue (speed > 100.0);
View Full Code Here

Examples of com.bitsofproof.supernode.common.Key.verify()

      byte[] toSign = new byte[100];
      random.nextBytes (toSign);
      byte[] signature = fullControl.sign (toSign);

      assertTrue (readOnly.verify (toSign, signature));
    }
  }

  private static final ThreadMXBean mxb = ManagementFactory.getThreadMXBean ();
  private static final Logger log = LoggerFactory.getLogger (ExtendedKeyTest.class);
View Full Code Here

Examples of com.dyuproject.oauth.Signature.verify()

        if(sig==null)
            return 400;
       
        try
        {
            if(sig.verify(consumerSecret, tokenSecret, request.getMethod(),
                    params.setUrl(request.getRequestURL().toString())))
            {
                return 200;
            }
        }
View Full Code Here

Examples of com.esri.gpt.catalog.publication.ValidationRequest.verify()

        //String sOut = "C:/xfer/test19139.xml";
        //com.esri.gpt.framework.xml.XmlIoUtil.writeXmlFile(sXml,new java.io.File(sOut));

        // verifies the file, set the success message
        ValidationRequest request = new ValidationRequest(context,sFileName,sXml);
        request.verify();
        msgBroker.addSuccessMessage("catalog.publication.success.validated");
      }
    }

  } catch (ValidationException e) {
View Full Code Here

Examples of com.google.nigori.common.DSAVerify.verify()

      DSASignature sig =
          new DSASignature(dsaR, dsaS, Util.joinBytes(toBytes(serverName), nonce.nt(), nonce.nr(), toBytes(command), Util.joinBytes(payload)));
      try {
        DSAVerify v = new DSAVerify(publicKey);

        if (v.verify(sig)) {
          boolean validNonce = database.checkAndAddNonce(nonce, publicHash);

          boolean userExists = database.haveUser(publicHash);
          if (validNonce && userExists) {
            try {
View Full Code Here

Examples of com.hazelcast.config.JoinConfig.verify()

        return joiner;
    }

    Joiner createJoiner() {
        JoinConfig join = config.getNetworkConfig().getJoin();
        join.verify();

        if (join.getMulticastConfig().isEnabled() && multicastService != null) {
            logger.info("Creating MulticastJoiner");
            return new MulticastJoiner(this);
        } else if (join.getTcpIpConfig().isEnabled()) {
View Full Code Here

Examples of com.intel.mountwilson.manifest.data.IManifest.verify()

        }

        for (String pcr : gkvPcrManifestMap.keySet()) {
            if (pcrManifestMap.containsKey(pcr)) {
                IManifest pcrMf = pcrManifestMap.get(pcr);
                boolean trustStatus = pcrMf.verify(gkvPcrManifestMap.get(pcr));
                log.info(String.format("PCR %s Host Trust status %s", pcr,
                        String.valueOf(trustStatus)));
                /*
                 * Log to database
                 */
 
View Full Code Here

Examples of com.itextpdf.text.pdf.security.OCSPVerifier.verify()

                    parameters.setRevocationEnabled(false);

                    // Verify the certificate using OCSP responses.
                    OCSPVerifier verifier = new OCSPVerifier(null, (ArrayList<BasicOCSPResp>) ocspResponses);
                    verifier.setOnlineCheckingAllowed(false);
                    if (verifier.verify(certificate, issuerCertificate, date.getTime()).size() == 0) {
                        throw new NoOCSPResponseException(
                            String.format(messages.getString(
                            "Could_not_find_a_valid_OCSP_response_for_the_certificate__%s"),
                            CertificateValidator.getCertificateName(certificate)));
                    }
View Full Code Here

Examples of com.itextpdf.text.pdf.security.PdfPKCS7.verify()

        // Get all the information about the signature.
        AcroFields fields = reader.getAcroFields();
        PdfPKCS7 pkcs7 = fields.verifySignature(signature);

        // Use the signature to check the document integrity.
        if (!pkcs7.verify()) {
            throw new InvalidSignatureException(
                String.format(messages.getString(
                "Document_was_modified_or_corrupted_after_the_signature__%s"),
                signature));
        }
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.