/libcore/luni/src/test/java/tests/security/cert/ |
D | CRLTest.java | 51 CRL crl = new MyCRL(validValues[i]); in testConstructor() local 52 assertEquals(validValues[i], crl.getType()); in testConstructor() 56 CRL crl = new MyCRL(invalidValues[i]); in testConstructor() local 57 assertEquals(invalidValues[i], crl.getType()); in testConstructor() 61 CRL crl = new MyCRL(null); in testConstructor() local 73 CRL crl = new MyCRL("TEST_TYPE"); in testGetType01() local 74 assertEquals("TEST_TYPE", crl.getType()); in testGetType01() 82 CRL crl = new MyCRL(null); in testGetType02() local 83 assertNull(crl.getType()); in testGetType02() 96 CRL crl = new MyCRL("TEST_TYPE"); in testToString() local [all …]
|
D | X509CRLTest.java | 257 TBTCRL crl = new TBTCRL() { in testGetIssuerX500Principal() local 263 assertEquals(new X500Principal("CN=Z"), crl.getIssuerX500Principal()); in testGetIssuerX500Principal() 274 TBTCRL crl = new TBTCRL() { in testGetRevokedCertificate() local 281 crl.getRevokedCertificate((X509Certificate) null); in testGetRevokedCertificate() 291 crl.getRevokedCertificate(cert); in testGetRevokedCertificate() 298 TBTCRL crl = new TBTCRL() { in testAbstractMethods() local 305 crl.getEncoded(); in testAbstractMethods() 306 crl.getIssuerDN(); in testAbstractMethods() 307 crl.getNextUpdate(); in testAbstractMethods() 308 crl.getRevokedCertificate(BigInteger.ONE); in testAbstractMethods() [all …]
|
D | X509CRLSelector2Test.java | 243 CRL crl = new TestCRL(minCRL); in testSetMinCRLNumberLjava_math_BigInteger() local 247 selector.match(crl)); in testSetMinCRLNumberLjava_math_BigInteger() 250 .match(crl)); in testSetMinCRLNumberLjava_math_BigInteger() 253 selector.match(crl)); in testSetMinCRLNumberLjava_math_BigInteger() 265 TestCRL crl = new TestCRL(maxCRL); in testSetMaxCRLNumberLjava_math_BigInteger() local 269 selector.match(crl)); in testSetMaxCRLNumberLjava_math_BigInteger() 272 .match(crl)); in testSetMaxCRLNumberLjava_math_BigInteger() 275 selector.match(crl)); in testSetMaxCRLNumberLjava_math_BigInteger() 285 TestCRL crl = new TestCRL(new Date(200), new Date(300)); in testSetDateAndTimeLjava_util_Date() local 288 selector.match(crl)); in testSetDateAndTimeLjava_util_Date() [all …]
|
D | X509CRL2Test.java | 111 MyX509CRL crl = new MyX509CRL(); in test_X509CRL() local 112 assertNotNull(crl); in test_X509CRL() 113 assertTrue(crl instanceof X509CRL); in test_X509CRL()
|
D | CertStoreSpiTest.java | 81 public boolean match (CRL crl) { in match() argument 89 public boolean match (Certificate crl) { in match() argument
|
D | CertificateFactorySpiTest.java | 165 CRL crl = certFactorySpi.engineGenerateCRL(dis); in testCertificateFactorySpi02() local 166 assertNull("Result must be null", crl); in testCertificateFactorySpi02() 235 CRL crl = certFactorySpi.engineGenerateCRL(dis); in testCertificateFactorySpi03() local 236 assertNull("Result must be null", crl); in testCertificateFactorySpi03()
|
D | CertStore2Test.java | 295 public boolean match(CRL crl) { in match() argument 305 public boolean match(CRL crl) { in match() argument 328 public boolean match(Certificate crl) { in match() argument
|
D | CertificateFactory4Test.java | 125 CRL crl = fact.generateCRL(is); in test_generateCRLLjava_io_InputStream() local 127 + "\" were not parsed correctly", crl); in test_generateCRLLjava_io_InputStream()
|
D | CertificateFactory2Test.java | 147 CRL crl = certFactory.generateCRL(dis); in checkResult() local 148 assertNull("Result must be null", crl); in checkResult()
|
D | CertificateFactory1Test.java | 437 CRL crl; in testCertificateFactory11() local 459 crl = certFs[i].generateCRL(is); in testCertificateFactory11() 460 assertNull("Not null CRL was created", crl); in testCertificateFactory11()
|
D | X509CertSelectorTest.java | 1949 public MyCRL crl; field in X509CertSelectorTest 1964 crl = new MyCRL("X.509"); in setupEnvironment()
|
/libcore/support/src/test/java/tests/resources/x509/ |
D | create.sh | 94 openssl ca -gencrl -crlhours 70 -keyfile /tmp/cakey.pem -cert /tmp/cacert.pem -out /tmp/crl-empty.p… 95 openssl crl -in /tmp/crl-empty.pem -outform d -out "$DIR/crl-empty.der" 99 openssl ca -gencrl -crlhours 70 -keyfile /tmp/cakey.pem -cert /tmp/cacert.pem -out /tmp/crl-rsa.pem… 100 openssl crl -in /tmp/crl-rsa.pem -outform d -out "$DIR/crl-rsa.der" 108 …10101Z -crldays 30 -keyfile /tmp/cakey.pem -cert /tmp/cacert.pem -out /tmp/crl-rsa-dsa.pem -config… 110 openssl crl -in /tmp/crl-rsa-dsa.pem -outform d -out "$DIR/crl-rsa-dsa.der" 111 openssl crl -in "$DIR/crl-rsa-dsa-sigopt.pem" -outform d -out "$DIR/crl-rsa-dsa-sigopt.der" 114 …s unsupported_cert -keyfile /tmp/cakey.pem -cert /tmp/cacert.pem -out /tmp/crl-unsupported.pem -co… 115 openssl crl -in /tmp/crl-unsupported.pem -outform d -out "$DIR/crl-unsupported.der" 117 openssl crl -inform d -in "$DIR/crl-rsa.der" -noout -lastupdate -nextupdate > "$DIR/crl-rsa-dates.t… [all …]
|
D | default.cnf | 87 crl_dir = $dir/crl # Where the issued crl are kept 93 crl = $dir/crl.pem # The current CRL
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | DistributionPointFetcher.java | 189 X509CRL crl = getCRL(uriName); in getCRLs() local 190 if (crl != null) { in getCRLs() 191 possibleCRLs.add(crl); in getCRLs() 204 for (X509CRL crl : possibleCRLs) { in getCRLs() 209 if (selector.match(crl) && verifyCRL(certImpl, point, crl, in getCRLs() 212 crls.add(crl); in getCRLs() 276 for (CRL crl : store.getCRLs(xcs)) { in getCRLs() 277 crls.add((X509CRL)crl); in getCRLs() 317 X509CRL crl, boolean[] reasonsMask, boolean signFlag, in verifyCRL() argument 331 X509CRLImpl crlImpl = X509CRLImpl.toImpl(crl); in verifyCRL() [all …]
|
D | URICertStore.java | 107 private X509CRL crl; field in URICertStore 386 return getMatchingCRLs(crl, selector); in engineGetCRLs() 403 return getMatchingCRLs(crl, selector); in engineGetCRLs() 412 return getMatchingCRLs(crl, selector); in engineGetCRLs() 419 crl = (X509CRL) factory.generateCRL(in); in engineGetCRLs() 421 return getMatchingCRLs(crl, selector); in engineGetCRLs() 429 crl = null; in engineGetCRLs() 440 (X509CRL crl, CRLSelector selector) { in getMatchingCRLs() argument 441 if (selector == null || (crl != null && selector.match(crl))) { in getMatchingCRLs() 442 return Collections.singletonList(crl); in getMatchingCRLs()
|
D | RevocationChecker.java | 504 for (CRL crl : store.getCRLs(sel)) { 505 possibleCRLs.add((X509CRL)crl); 621 for (X509CRL crl : approvedCRLs) { 622 X509CRLEntry e = crl.getRevokedCertificate(cert); 659 crl.getIssuerX500Principal(), entry.getExtensions()); 832 for (X509CRL crl : crls) { 834 certImpl, point, crl, reasonsMask, signFlag, 838 results.add(crl);
|
D | AlgorithmChecker.java | 391 static void check(PublicKey key, X509CRL crl) in check() argument 396 x509CRLImpl = X509CRLImpl.toImpl(crl); in check()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | X509CRLTest.java | 116 X509CRL crl = (X509CRL) f.generateCRL(is); in getCRL() local 117 assertNotNull(crl); in getCRL() 118 return crl; in getCRL() 287 X509CRL crl = getCRL(f, CRL_RSA); in getThisUpdateNextUpdate() local 296 assertDateEquals(lastUpdate, crl.getThisUpdate()); in getThisUpdateNextUpdate() 297 assertDateEquals(nextUpdate, crl.getNextUpdate()); in getThisUpdateNextUpdate() 301 X509CRL crl = getCRL(f, CRL_RSA_DSA); in getThisUpdateNextUpdate() local 310 assertDateEquals(lastUpdate, crl.getThisUpdate()); in getThisUpdateNextUpdate() 311 assertDateEquals(nextUpdate, crl.getNextUpdate()); in getThisUpdateNextUpdate()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | X509CRLImpl.java | 1188 public static X500Principal getIssuerX500Principal(X509CRL crl) { in getIssuerX500Principal() argument 1190 byte[] encoded = crl.getEncoded(); in getIssuerX500Principal() 1217 public static byte[] getEncodedInternal(X509CRL crl) throws CRLException { in getEncodedInternal() argument 1218 if (crl instanceof X509CRLImpl) { in getEncodedInternal() 1219 return ((X509CRLImpl)crl).getEncodedInternal(); in getEncodedInternal() 1221 return crl.getEncoded(); in getEncodedInternal() 1230 public static X509CRLImpl toImpl(X509CRL crl) in toImpl() argument 1232 if (crl instanceof X509CRLImpl) { in toImpl() 1233 return (X509CRLImpl)crl; in toImpl() 1235 return X509Factory.intern(crl); in toImpl()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CRLSelector.java | 57 boolean match(CRL crl); in match() argument
|
D | X509CRLSelector.java | 596 public boolean match(CRL crl) { in match() argument 597 if (!(crl instanceof X509CRL)) { in match() 600 X509CRL xcrl = (X509CRL)crl; in match()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/ |
D | X509CRLImpl.java | 251 java.security.cert.X509CRL crl) { in getIssuerX500Principal() argument 255 public static byte[] getEncodedInternal(java.security.cert.X509CRL crl) in getEncodedInternal() argument 260 public static sun.security.x509.X509CRLImpl toImpl(java.security.cert.X509CRL crl) in toImpl() argument
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | TestUtils.java | 766 public static MyCRL crl; 783 crl = new MyCRL("X.509");
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS7.java | 560 for (X509CRL crl: crls) { in encodeSignedData() 561 if (crl instanceof X509CRLImpl) in encodeSignedData() 562 implCRLs.add((X509CRLImpl) crl); in encodeSignedData() 565 byte[] encoded = crl.getEncoded(); in encodeSignedData()
|