/libcore/luni/src/test/java/tests/security/cert/ |
X509CRLTest.java | 236 assertFalse("The CRL should not be equals to the object which is not " 259 TBTCRL crl = new TBTCRL() { local 265 assertEquals(new X500Principal("CN=Z"), crl.getIssuerX500Principal()); 294 TBTCRL crl = new TBTCRL() { local 301 crl.getEncoded(); 302 crl.getIssuerDN(); 303 crl.getNextUpdate(); 304 crl.getRevokedCertificate(BigInteger.ONE); 305 crl.getRevokedCertificates(); 306 crl.getSigAlgName() 323 TBTCRL crl = new TBTCRL(); local [all...] |
CRLTest.java | 27 import java.security.cert.CRL; 33 * Tests for <code>java.security.cert.CRL</code> fields and methods 47 * Test for <code>CRL(String type)</code> constructor<br> 51 CRL crl = new MyCRL(validValues[i]); local 52 assertEquals(validValues[i], crl.getType()); 56 CRL crl = new MyCRL(invalidValues[i]); local 57 assertEquals(invalidValues[i], crl.getType()); 61 CRL crl = new MyCRL(null) local 73 CRL crl = new MyCRL("TEST_TYPE"); local 82 CRL crl = new MyCRL(null); local 96 CRL crl = new MyCRL("TEST_TYPE"); local 104 CRL crl = new MyCRL("TEST_TYPE"); local [all...] |
CertificateFactory4Test.java | 33 import java.security.cert.CRL; 49 private static final String[] CRL_URLS = new String[] { "Bug93893-1.crl", 50 "Bug93893-2.crl", "Bug94404-DER.crl" }; 52 private static final String[] CRLCOLLECTION_URLS = new String[] { "Bug94404-PKCS7.crl" }; 117 CRL crl = fact.generateCRL(is); local 118 assertNotNull("The CRL in \"" + certUrl.toExternalForm() 119 + "\" were not parsed correctly", crl); 138 Collection<? extends CRL> crls = fact.generateCRLs(is) [all...] |
CertificateFactorySpiTest.java | 33 import java.security.cert.CRL; 93 CRL ccCRL = certFactorySpi.engineGenerateCRL(bais); 94 assertNull("Not null CRL", ccCRL); 101 Collection<? extends CRL> colCRL = certFactorySpi.engineGenerateCRLs(bais); 102 assertNull("Not null CRL", colCRL); 165 CRL crl = certFactorySpi.engineGenerateCRL(dis); local 166 assertNull("Result must be null", crl); 167 Collection<? extends CRL> colcrl = certFactorySpi.engineGenerateCRLs(dis); 235 CRL crl = certFactorySpi.engineGenerateCRL(dis) local [all...] |
X509CRLSelector2Test.java | 20 import java.security.cert.CRL; 69 CRL crl1 = new TestCRL(iss1); 70 CRL crl2 = new TestCRL(iss2); 73 assertTrue("The CRL should match the selection criteria.", selector 75 assertFalse("The CRL should not match the selection criteria.", 78 assertTrue("The CRL should match the selection criteria.", selector 100 assertTrue("The CRL should match the selection criteria.", selector 102 assertFalse("The CRL should not match the selection criteria.", 110 assertTrue("The CRL should match the selection criteria.", selector 141 assertTrue("Any CRL issuers should match in the case of null issuers." 245 CRL crl = new TestCRL(minCRL); local 269 TestCRL crl = new TestCRL(maxCRL); local 289 TestCRL crl = new TestCRL(new Date(200), new Date(300)); local 322 TestCRL crl = new TestCRL(); local 481 TestCRL crl = new TestCRL(iss1); local [all...] |
CertificateFactory2Test.java | 35 import java.security.cert.CRL; 147 CRL crl = certFactory.generateCRL(dis); local 148 assertNull("Result must be null", crl); 149 Collection<? extends CRL> colc = certFactory.generateCRLs(dis);
|
X509CRL2Test.java | 111 MyX509CRL crl = new MyX509CRL(); local 112 assertNotNull(crl); 113 assertTrue(crl instanceof X509CRL);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
CRLTest.java | 24 import java.security.cert.CRL; 31 * Tests for <code>java.security.cert.CRL</code> fields and methods 50 * Assertion: returns <code>CRL</code> type 53 CRL crl = new MyCRL("TEST_TYPE"); local 54 assertEquals("TEST_TYPE", crl.getType()); 59 * Assertion: returns <code>CRL</code> type 62 CRL crl = new MyCRL(null); local 63 assertNull(crl.getType()) 76 CRL crl = new MyCRL("TEST_TYPE"); local 84 CRL crl = new MyCRL("TEST_TYPE"); local [all...] |
CertificateFactorySpiTest.java | 28 import java.security.cert.CRL; 102 CRL ccCRL = certFactorySpi.engineGenerateCRL(bais); 103 assertNull("Not null CRL", ccCRL); 112 assertNull("Not null CRL", colCRL); 175 CRL crl = certFactorySpi.engineGenerateCRL(dis); local 176 assertNull("Result must be null", crl); 245 CRL crl = certFactorySpi.engineGenerateCRL(dis); local 246 assertNull("Result must be null", crl); [all...] |
CertificateFactory2Test.java | 29 import java.security.cert.CRL; 157 CRL crl = certFactory.generateCRL(dis); local 158 assertNull("Result must be null", crl);
|
CertificateFactory4Test.java | 27 import java.security.cert.CRL; 46 private static final String[] CRL_URLS = new String[] { "Bug93893-1.crl", 47 "Bug93893-2.crl", "Bug94404-DER.crl" }; 49 private static final String[] CRLCOLLECTION_URLS = new String[] { "Bug94404-PKCS7.crl" }; 114 CRL crl = fact.generateCRL(is); local 115 assertNotNull("The CRL in \"" + certUrl.toExternalForm() 116 + "\" were not parsed correctly", crl); [all...] |
X509CRLTest.java | 208 assertFalse("The CRL should not be equals to the object which is not " 231 TBTCRL crl = new TBTCRL() { local 237 assertEquals(new X500Principal("CN=Z"), crl.getIssuerX500Principal());
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
PKIXCRLUtil.java | 27 // get complete CRL(s) 50 X509CRL crl = (X509CRL)it.next(); local 52 if (crl.getNextUpdate().after(validityDate)) 58 if (crl.getThisUpdate().before(cert.getNotAfter())) 60 finalSet.add(crl); 65 finalSet.add(crl); 78 // get complete CRL(s) 129 "Exception searching in X.509 CRL store.", e); 144 "Exception searching in X.509 CRL store.", e);
|
JDKX509CertificateFactory.java | 16 import java.security.cert.CRL; 40 private static final PEMUtil PEM_CRL_PARSER = new PEMUtil("CRL"); 107 protected CRL createCRL(CertificateList c) 113 private CRL readPEMCRL( 128 private CRL readDERCRL( 150 private CRL getCRL() 247 * Generates a certificate revocation list (CRL) object and initializes 250 public CRL engineGenerateCRL( 319 * a PKCS#7 CRL set. This is a PKCS#7 SignedData object, with the 327 CRL crl local [all...] |
/external/openssl/apps/ |
crl2p7.c | 94 X509_CRL *crl=NULL; local 167 BIO_printf(bio_err," -nocrl no crl to load, just certs from '-certfile'\n"); 196 crl=d2i_X509_CRL_bio(in,NULL); 198 crl=PEM_read_bio_X509_CRL(in,NULL,NULL,NULL); 200 BIO_printf(bio_err,"bad input format specified for input crl\n"); 203 if (crl == NULL) 205 BIO_printf(bio_err,"unable to load CRL\n"); 219 p7s->crl=crl_stack; 220 if (crl != NULL) 222 sk_X509_CRL_push(crl_stack,crl); [all...] |
pkcs7.c | 169 BIO_printf(bio_err," -print_certs print any certs or crl in the input\n"); 253 crls=p7->d.sign->crl; 257 crls=p7->d.signed_and_enveloped->crl; 279 X509_CRL *crl; local 283 crl=sk_X509_CRL_value(crls,i); 285 X509_CRL_print(out, crl); 287 if(!noout)PEM_write_bio_X509_CRL(out,crl);
|
/libcore/luni/src/main/java/java/security/cert/ |
X509CRL.java | 34 * Abstract base class for X.509 certificate revocation lists (CRL). 36 * More information regarding CRL can be found in RFC 2459, 37 * "Internet X.509 Public Key Infrastructure Certificate and CRL Profile" at <a 42 public abstract class X509CRL extends CRL implements X509Extension { 75 * Returns the hashcode of this CRL instance. 93 * Returns this CRL in ASN.1 DER encoded form. 95 * @return this CRL in ASN.1 DER encoded form. 103 * Verifies this CRL by verifying that this CRL was signed with the 107 * the public key to verify this CRL with 176 X509CRL crl = (X509CRL) factory local [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/cert/ |
X509CertFactoryImplTest.java | 25 import java.security.cert.CRL; 108 CRL crl; local 114 crl = certFactory.engineGenerateCRL(bais); 115 assertNotNull("First generated CRL is null", crl); 116 crl = certFactory.engineGenerateCRL(bais); 117 assertNotNull("Second generated CRL is null", crl); 129 crl = certFactory.engineGenerateCRL(bais) [all...] |
X509CRLImplTest.java | 84 private static String issuerName = "O=CRL Issuer"; 108 // "If used by conforming CRL issuers, this extension MUST always be 110 // correctly attribute CRL entries to certificates. This specification 139 // CRL Number Extension 190 private static X509CRLImpl crl; field in class:X509CRLImplTest 241 crl = new X509CRLImpl(certificateList); 276 * X509CRLImpl(CertificateList crl) method testing. 293 if (!Arrays.equals(encoding, crl.getEncoded())) { 294 fail("Incorrect encoding of CRL."); 305 assertEquals("Incorrect version value", 2, crl.getVersion()) [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/ |
CertificateListTest.java | 83 // "If used by conforming CRL issuers, this extension MUST always be 85 // correctly attribute CRL entries to certificates. This specification 120 new Extension("2.5.29.20", // CRL Number Extension (rfc 3280) 208 X509CRL crl = (X509CRL) local 211 Set rcerts = crl.getRevokedCertificates(); 218 System.out.println(">> "+crl.getRevokedCertificate(
|
/external/apache-harmony/security/src/test/impl/java.injected/java/security/cert/ |
X509CRLSelectorTest.java | 195 assertTrue("Any CRL issuers should match in the case of null issuers.", 202 assertTrue("The CRL should match the selection criteria.", 204 assertFalse("The CRL should not match the selection criteria.", 236 assertTrue("Any CRL issuers should match in the case of null issuers.", 248 assertTrue("The CRL should match the selection criteria.", 250 assertFalse("The CRL should not match the selection criteria.", 270 assertTrue("The CRL should match the selection criteria.", 272 assertFalse("The CRL should not match the selection criteria.", 275 assertTrue("The CRL should match the selection criteria.", 297 assertTrue("The CRL should match the selection criteria." 358 TestCRL crl = new TestCRL(minCRL); local 380 TestCRL crl = new TestCRL(maxCRL); local 401 TestCRL crl = new TestCRL(new Date(200), new Date(300)); local 571 TestCRL crl = new TestCRL(iss1); local [all...] |
X509CertificateTest.java | 67 // Base64 encoded form of ASN.1 DER encoded X.509 CRL 271 X509CRL crl = (X509CRL) certFactory.generateCRL(is); local 272 crl.getExtensionValue("1.1.1.1");
|
/external/bouncycastle/src/main/java/org/bouncycastle/x509/ |
X509CRLStoreSelector.java | 11 import java.security.cert.CRL; 98 X509CRL crl = (X509CRL)obj; local 102 byte[] bytes = crl 141 byte[] idp = crl 163 public boolean match(CRL crl) 165 return match((Object)crl); 169 * Returns if this selector must match CRLs with the delta CRL indicator 172 * @return Returns <code>true</code> if only CRLs with the delta CRL 181 * If this is set to <code>true</code> the CRL reported contains the delt [all...] |
/external/openssl/crypto/x509/ |
by_dir.c | 285 } crl; member in union:__anon10104 306 data.crl.st_crl.crl= &data.crl.st_crl_info; 307 data.crl.st_crl_info.issuer=name; 308 stmp.data.crl= &data.crl.st_crl; 430 /* If a CRL, update the last file suffix added for this */
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
X509CRLImpl.java | 65 private final CertificateList crl; field in class:X509CRLImpl 80 // encoded form of crl 85 // indicates whether the crl entries have already been retrieved 86 // from CertificateList object (crl) 89 // indicates whether this X.509 CRL is direct or indirect 92 // if crl is indirect, this field holds an info about how 94 // by the same issuer as CRL. 98 * Creates X.509 CRL by wrapping of the specified CertificateList object. 100 public X509CRLImpl(CertificateList crl) { 101 this.crl = crl [all...] |