241242243244245246247248249250251
// basic request generation // OCSPReqGenerator gen = new OCSPReqGenerator(); gen.addRequest(id); OCSPReq req = gen.generate(); if (req.isSigned()) { fail("signed but shouldn't be"); }
276277278279280281282283284285286
gen.addRequest( new CertificateID(CertificateID.HASH_SHA1, testCert, BigInteger.valueOf(1))); chain[0] = testCert; req = gen.generate("SHA1withECDSA", signKP.getPrivate(), chain, "BC"); if (!req.isSigned()) { fail("not signed but should be"); }
345346347348349350351352353354355
431432433434435436437438439440441
OCSPReqGenerator gen = new OCSPReqGenerator(); gen.addRequest( new CertificateID(CertificateID.HASH_SHA1, testCert, BigInteger.valueOf(1))); OCSPReq req = gen.generate(); if (req.isSigned()) { fail("signed but shouldn't be"); }
466467468469470471472473474475476
gen.addRequest( new CertificateID(CertificateID.HASH_SHA1, testCert, BigInteger.valueOf(1))); chain[0] = testCert; req = gen.generate("SHA1withRSA", signKP.getPrivate(), chain, "BC"); if (!req.isSigned()) { fail("not signed but should be"); }
535536537538539540541542543544545
640641642643644645646647648649650
675676677678679680681682683684685
744745746747748749750751752753754
187188189190191192193194195196197