Examples of verify()


Examples of org.apache.harmony.security.tests.support.cert.MyCertificate.verify()

               CertificateException,
               NoSuchAlgorithmException,
               NoSuchProviderException,
               SignatureException {
        Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding);
        c1.verify(null);
    }

    /**
     * This test just calls <code>verify(PublicKey,String)</code> method<br>
     *
 
View Full Code Here

Examples of org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify()

        // perform host name verification
        try
        {
            BrowserCompatHostnameVerifier hostnameVerifier = new BrowserCompatHostnameVerifier();
            hostnameVerifier.verify( host, chain[0] );
        }
        catch ( SSLException ce )
        {
            failCauses.add( FailCause.HostnameVerificationFailed );
        }
View Full Code Here

Examples of org.apache.openejb.tomcat.installer.Paths.verify()

    private void installConfigFiles(Properties properties) {
        String openejbWarDir = properties.getProperty("openejb.war");
        if (openejbWarDir == null) return;

        Paths paths = new Paths(new File(openejbWarDir));
        if (paths.verify()) {
            Installer installer = new Installer(paths);
            installer.installConfigFiles();
        }
    }
View Full Code Here

Examples of org.apache.shale.util.TokenProcessor.verify()

        String token = (String) getValue();
        if (log.isDebugEnabled()) {
            log.debug("Validating token '" + token + "'");
        }
        TokenProcessor tp = getTokenProcessor(context);
        if (!tp.verify(context, token)) {
            if (log.isDebugEnabled()) {
                log.debug("  Validation failed!");
            }
            setValid(false);
            String summary = getErrorSummaryMessage(context);
View Full Code Here

Examples of org.apache.sshd.common.Signature.verify()

            buf.putString(keyAlg);
            buffer.rpos(oldPos);
            buffer.wpos(oldPos + 4 + len);
            buf.putBuffer(buffer);
            verif.update(buf.array(), buf.rpos(), buf.available());
            if (!verif.verify(sig)) {
                throw new Exception("Key verification failed");
            }
            return true;
        }
    }
View Full Code Here

Examples of org.apache.tomee.installer.Paths.verify()

        // install conf/openejb.xml and conf/logging.properties files
        String openejbWarDir = properties.getProperty("tomee.war");
        if (openejbWarDir != null) {

            Paths paths = new Paths(new File(openejbWarDir));
            if (paths.verify()) {
                Installer installer = new Installer(paths);
                if (installer.getStatus() != Installer.Status.INSTALLED) {
                    installer.installConfigFiles();
                }
            }
View Full Code Here

Examples of org.apache.tomee.installer.PathsInterface.verify()

        paths.reset();
        installer.reset();
        paths.setCatalinaHomeDir(this.catalinaHome);
        paths.setCatalinaBaseDir(this.catalinaBase);
        paths.setServerXmlFile(this.serverXmlFile);
        if (paths.verify() && install) {
            installer.installAll();
        }
        installerResults = new ArrayList<Map<String, String>>();
        installerResults.add(Common.build("catalinaHomeDir", String.valueOf(catalinaHome)));
        installerResults.add(Common.build("catalinaBaseDir", String.valueOf(catalinaBase)));
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0220_server_dailback.DialbackIdGenerator.verify()

   
    public void testId() {
        DialbackIdGenerator generator = new DialbackIdGenerator();
        String id = generator.generate(receiving, originating, streamId);
       
        Assert.assertTrue(generator.verify(id, receiving, originating, streamId));
       
    }

    public void testNotValidId() {
        DialbackIdGenerator generator = new DialbackIdGenerator();
View Full Code Here

Examples of org.apache.xml.security.algorithms.SignatureAlgorithm.verify()

              throw ex;
          }

            // have SignatureAlgorithm sign the input bytes and compare them to
            // the bytes that were stored in the signature.
            if (!sa.verify(sigBytes)) {
                log.warn("Signature verification failed.");
                return false;
            }

            return si.verify(this._followManifestsDuringValidation);
View Full Code Here

Examples of org.apache.xml.security.stax.securityToken.InboundSecurityToken.verify()

                InboundSecurityContext inboundSecurityContext) throws XMLSecurityException {

            InboundSecurityToken inboundSecurityToken = SecurityTokenFactory.getInstance().getSecurityToken(signatureType.getKeyInfo(),
                    SecurityTokenConstants.KeyUsage_Signature_Verification, securityProperties, inboundSecurityContext);

            inboundSecurityToken.verify();

            inboundSecurityToken.addTokenUsage(SecurityTokenConstants.TokenUsage_Signature);

            TokenSecurityEvent tokenSecurityEvent = XMLSecurityUtils.createTokenSecurityEvent(inboundSecurityToken, signatureType.getId());
            inboundSecurityContext.registerSecurityEvent(tokenSecurityEvent);
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.