/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; 101 CRL ccCRL = certFactorySpi.engineGenerateCRL(bais); 102 assertNull("Not null CRL", ccCRL); 111 assertNull("Not null CRL", colCRL); 174 CRL crl = certFactorySpi.engineGenerateCRL(dis); local 175 assertNull("Result must be null", crl); 244 CRL crl = certFactorySpi.engineGenerateCRL(dis); local 245 assertNull("Result must be null", crl); [all...] |
CertificateFactory2Test.java | 29 import java.security.cert.CRL; 156 CRL crl = certFactory.generateCRL(dis); local 157 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" }; 116 CRL crl = fact.generateCRL(is); local 117 assertNotNull("The CRL in \"" + certUrl.toExternalForm() 118 + "\" were not parsed correctly", crl); [all...] |
X509CRLTest.java | 206 assertFalse("The CRL should not be equals to the object which is not " 229 TBTCRL crl = new TBTCRL() { local 237 assertEquals(new X500Principal("CN=Z"), crl.getIssuerX500Principal());
|
CertificateFactory1Test.java | 31 import java.security.cert.CRL; 403 assertTrue("Not empty CRL collection was returned from null stream", colCrl.isEmpty()); 418 assertTrue("Not empty CRL collection was returned from empty stream", colCrl.isEmpty()); 451 CRL crl; local 473 crl = certFs[i].generateCRL(is); 474 assertNull("Not null CRL was created", crl); 481 assertTrue("Not empty CRL Collection was created", colCrl.isEmpty());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
PKIXCRLUtil.java | 26 // get complete CRL(s) 42 X509CRL crl = (X509CRL)it.next(); local 44 if (crl.getNextUpdate().after(validityDate)) 50 if (crl.getThisUpdate().before(cert.getNotAfter())) 52 finalSet.add(crl); 57 finalSet.add(crl); 104 // "Exception searching in X.509 CRL store.", e); 120 "Exception searching in X.509 CRL store.", e);
|
/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/x509/ |
CertificateListTest.java | 90 // "If used by conforming CRL issuers, this extension MUST always be 92 // correctly attribute CRL entries to certificates. This specification 128 new Extension("2.5.29.20", // CRL Number Extension (rfc 3280) 216 X509CRL crl = (X509CRL) local 219 Set rcerts = crl.getRevokedCertificates(); 226 System.out.println(">> " + crl.getRevokedCertificate(
|
/external/boringssl/src/crypto/x509/ |
pkcs7.c | 29 /* pkcs7_parse_header reads the non-certificate/non-CRL prefix of a PKCS#7 181 X509_CRL *crl; local 189 crl = d2i_X509_CRL(NULL, &inp, CBS_len(&crl_data)); 190 if (!crl) { 196 if (sk_X509_CRL_push(out_crls, crl) == 0) { 197 X509_CRL_free(crl); 263 * |cb| with a CBB to which certificate or CRL data can be written, and the 334 X509_CRL *crl = sk_X509_CRL_value(crls, i); local 336 int len = i2d_X509_CRL(crl, NULL); 340 i2d_X509_CRL(crl, &buf) < 0) [all...] |
by_dir.c | 283 } crl; member in union:__anon4806 307 data.crl.st_crl.crl= &data.crl.st_crl_info; 308 data.crl.st_crl_info.issuer=name; 309 stmp.data.crl= &data.crl.st_crl; 435 /* If a CRL, update the last file suffix added for this */
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/ |
PKIXCRLStoreSelector.java | 4 import java.security.cert.CRL; 25 public class PKIXCRLStoreSelector<T extends CRL> 61 * If this is set to <code>true</code> the CRL reported contains the delta 62 * CRL indicator CRL extension. 67 * @param deltaCRLIndicator <code>true</code> if the delta CRL indicator 68 * extension must be in the CRL. 78 * Sets the maximum base CRL number. Setting to <code>null</code> disables 81 * This is only meaningful for delta CRLs. Complete CRLs must have a CRL 83 * corresponding CRL 174 X509CRL crl = (X509CRL)obj; local [all...] |
/external/apache-harmony/security/src/test/impl/java.injected/java/security/cert/ |
X509CRLSelectorTest.java | 193 assertTrue("Any CRL issuers should match in the case of null issuers.", 200 assertTrue("The CRL should match the selection criteria.", 202 assertFalse("The CRL should not match the selection criteria.", 234 assertTrue("Any CRL issuers should match in the case of null issuers.", 246 assertTrue("The CRL should match the selection criteria.", 248 assertFalse("The CRL should not match the selection criteria.", 268 assertTrue("The CRL should match the selection criteria.", 270 assertFalse("The CRL should not match the selection criteria.", 273 assertTrue("The CRL should match the selection criteria.", 295 assertTrue("The CRL should match the selection criteria." 356 TestCRL crl = new TestCRL(minCRL); local 378 TestCRL crl = new TestCRL(maxCRL); local 399 TestCRL crl = new TestCRL(new Date(200), new Date(300)); local 569 TestCRL crl = new TestCRL(iss1); local [all...] |
X509CertificateTest.java | 67 // Base64 encoded form of ASN.1 DER encoded X.509 CRL 273 X509CRL crl = (X509CRL) certFactory.generateCRL(is); local 274 crl.getExtensionValue("1.1.1.1");
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
CMSSignedGenerator.java | 135 * Add a CRL to the CRL set to be included with the generated SignedData message. 137 * @param crl the CRL to be included. 139 public void addCRL(X509CRLHolder crl) 141 crls.add(crl.toASN1Structure()); 145 * Add the CRLs in crlStore to the CRL set to be included with the generated SignedData message. 185 // * Add a single instance of otherRevocationData to the CRL set to be included with the generated SignedData message. 198 // * Add a Store of otherRevocationData to the CRL set to be included with the generated SignedData message.
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
CertificateFactory.java | 6 import java.security.cert.CRL; 39 private static final PEMUtil PEM_CRL_PARSER = new PEMUtil("CRL"); 106 protected CRL createCRL(CertificateList c) 112 private CRL readPEMCRL( 127 private CRL readDERCRL( 149 private CRL getCRL() 244 * Generates a certificate revocation list (CRL) object and initializes 247 public CRL engineGenerateCRL( 314 * a PKCS#7 CRL set. This is a PKCS#7 SignedData object, with the 322 CRL crl local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/ |
X509CRLStoreSelector.java | 5 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/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
CertificateFactory_ImplTest.java | 139 * Base64 encoded X.509 CRL. 203 * The name of the algorithm used for Certificate/CRL signing. 279 * Tries to generates single CRL/Certificate 311 X509CRL crl = (X509CRL) factory.generateCRL(bais); local 312 assertNotNull("Factory returned null on correct data", crl); 316 crl.verify(publicKey); 386 // -1 means that only 1 (-(-1)) CRL will be generated 417 // Tests CRL generation on the base of sequences of heterogeneous 420 // expected size og generated CRL collection [all...] |