Package java.security

Examples of java.security.CodeSigner


            certPath = factory.generateCertPath(list);
        } catch (CertificateException ex) {
            // do nothing
        }
        if (null != certPath) {
            asigners.add(new CodeSigner(certPath, null));
        }
    }
View Full Code Here


    /**
     * Tests CodeSigner.hashCode()
     */
    public void testHashCode() {
        assertTrue(new CodeSigner(cpath, ts).hashCode() == (cpath.hashCode() ^ ts
                .hashCode()));
        assertTrue(new CodeSigner(cpath, null).hashCode() == cpath.hashCode());
    }
View Full Code Here

            certPath = factory.generateCertPath(list);
        } catch (CertificateException ex) {
            // do nothing
        }
        if (null != certPath) {
            asigners.add(new CodeSigner(certPath, null));
        }
    }
View Full Code Here

        Date now = new Date();
        Timestamp ts = new Timestamp(now, cpath);

        try {
            url = new URL("http://localhost");
            signers = new CodeSigner[] { new CodeSigner(cpath, ts) };
        } catch (Exception ex) {
            throw new Error(ex);
        }
        Certificate[] x509chain = new Certificate[] {
                TestCertUtils.rootCA
View Full Code Here

     * @see com.intel.drl.test.SerializationTest#getData()
     */
    protected Object[] getData() {
        CertPath cpath = TestCertUtils.getCertPath();
        Timestamp ts = new Timestamp(new Date(1146633204309L), cpath);
        return new Object[] { new CodeSigner(cpath, ts),
                new CodeSigner(cpath, null) };
    }
View Full Code Here

     * @see com.intel.drl.test.SerializationTest#getData()
     */
    protected Object[] getData() {
        CertPath cpath = TestCertUtils.getCertPath();
        Timestamp ts = new Timestamp(new Date(1146633204309L), cpath);
        return new Object[] { new CodeSigner(cpath, ts),
                new CodeSigner(cpath, null) };
    }
View Full Code Here

        Date now = new Date();
        Timestamp ts = new Timestamp(now, cpath);

        try {
            url = new URL("http://localhost");
            signers = new CodeSigner[] { new CodeSigner(cpath, ts) };
        } catch (Exception ex) {
            throw new Error(ex);
        }
        Certificate[] x509chain = new Certificate[] {
                TestCertUtils.rootCA
View Full Code Here

            CertPath certChain = certificateFactory.generateCertPath(chain);
            if (signers == null) {
                signers = new ArrayList<CodeSigner>();
            }
            // Append the new code signer
            signers.add(new CodeSigner(certChain, getTimestamp(info)));

            if (debug != null) {
                debug.println("Signature Block Certificate: " +
                    chain.get(0));
            }
View Full Code Here

            certPath = factory.generateCertPath(list);
        } catch (CertificateException ex) {
            // do nothing
        }
        if (null != certPath) {
            asigners.add(new CodeSigner(certPath, null));
        }
    }
View Full Code Here

            certPath = factory.generateCertPath(list);
        } catch (CertificateException ex) {
            // do nothing
        }
        if (null != certPath) {
            asigners.add(new CodeSigner(certPath, null));
        }
    }
View Full Code Here

TOP

Related Classes of java.security.CodeSigner

Copyright © 2018 www.massapicom. 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.