/libcore/luni/src/test/java/tests/security/cert/ |
D | CollectionCertStoreParametersTest.java | 76 Vector<Certificate> certificates = new Vector<Certificate>(); in testCollectionCertStoreParametersCollection01() local 77 certificates.add(new MyCertificate("TEST", new byte[] {})); in testCollectionCertStoreParametersCollection01() 78 new CollectionCertStoreParameters(certificates); in testCollectionCertStoreParametersCollection01() 89 Vector<String> certificates = new Vector<String>(); in testCollectionCertStoreParametersCollection02() local 90 certificates.add(new String("Not a Certificate")); in testCollectionCertStoreParametersCollection02() 91 new CollectionCertStoreParameters(certificates); in testCollectionCertStoreParametersCollection02() 99 Vector<Certificate> certificates = new Vector<Certificate>(); in testCollectionCertStoreParametersCollection03() local 102 new CollectionCertStoreParameters(certificates); in testCollectionCertStoreParametersCollection03() 104 assertTrue("isRefUsed_1", certificates == cp.getCollection()); in testCollectionCertStoreParametersCollection03() 108 certificates.add(new MyCertificate("TEST", new byte[] {(byte)1})); in testCollectionCertStoreParametersCollection03() [all …]
|
D | CertStore2Test.java | 216 Collection<? extends Certificate> certificates = certStore.getCertificates(null); in testGetCertificates() local 217 assertNull(certificates); in testGetCertificates() 223 … Collection<? extends Certificate> certificates = certStore.getCertificates(new MyCertSelector()); in testGetCertificates() local 224 assertNotNull(certificates); in testGetCertificates() 225 assertTrue(certificates.isEmpty()); in testGetCertificates()
|
/libcore/ojluni/src/main/java/java/security/ |
D | Identity.java | 99 Vector<Certificate> certificates; field in Identity 189 certificates = new Vector<Certificate>(); in setPublicKey() 251 if (certificates == null) { in addCertificate() 252 certificates = new Vector<Certificate>(); in addCertificate() 262 certificates.addElement(certificate); in addCertificate() 299 if (certificates != null) { in removeCertificate() 302 if (certificate == null || !certificates.contains(certificate)) { in removeCertificate() 305 certificates.removeElement(certificate); in removeCertificate() 314 public Certificate[] certificates() { in certificates() method in Identity 315 if (certificates == null) { in certificates() [all …]
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS7.java | 72 private X509Certificate[] certificates = null; field in PKCS7 224 X509Certificate[] certificates, in PKCS7() argument 231 this.certificates = certificates; in PKCS7() 238 X509Certificate[] certificates, in PKCS7() argument 240 this(digestAlgorithmIds, contentInfo, certificates, null, signerInfos); in PKCS7() 248 certificates = new X509Certificate[contents.length]; in parseNetscapeCertChain() 263 certificates[i] = new X509CertImpl(contents[i], original); in parseNetscapeCertChain() 266 certificates[i] = new VerbatimX509Certificate( in parseNetscapeCertChain() 332 certificates = new X509Certificate[len]; in parseSignedData() 345 certificates[count] = new X509CertImpl(certVals[i], original); in parseSignedData() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | HostnameVerifierBenchmark.java | 73 final Certificate[] certificates = bytesToCertificates(encodedCertificates); in timeVerify() local 76 return certificates; in timeVerify() 83 private byte[][] certificatesToBytes(Certificate[] certificates) throws Exception { in certificatesToBytes() argument 84 byte[][] result = new byte[certificates.length][]; in certificatesToBytes() 85 for (int i = 0, certificatesLength = certificates.length; i < certificatesLength; i++) { in certificatesToBytes() 86 result[i] = certificates[i].getEncoded(); in certificatesToBytes()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | MyCertPath.java | 43 private final Vector<MyCertificate> certificates; field in MyCertPath 61 certificates = new Vector<MyCertificate>(); in MyCertPath() 62 certificates.add(new MyCertificate("MyEncoding", encoding)); in MyCertPath() 72 return Collections.unmodifiableList(certificates); in getCertificates()
|
D | MyCertificateFactorySpi.java | 124 public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) { in engineGenerateCertPath() argument 125 if (certificates == null) { in engineGenerateCertPath()
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
D | CertPathBuilderTestPKIX.java | 70 List<? extends Certificate> certificates = path.getCertificates(); in validateCertPath() local 74 assertEquals(2, certificates.size()); in validateCertPath() 76 Certificate endEntityCert = certificates.get(0); in validateCertPath()
|
/libcore/luni/src/test/java/tests/java/security/ |
D | IdentityTest.java | 129 assertSame(c1, i.certificates()[0]); in testAddCertificate1() 146 assertSame(c1, i.certificates()[0]); in testAddCertificate2() 199 java.security.Certificate[] s = i.certificates(); in testCertificates() 206 s = i.certificates(); in testCertificates() 305 assertEquals(2, i.certificates().length); in testSetPublicKey4() 311 assertEquals(0, i.certificates().length); in testSetPublicKey4()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarFileTest.java | 602 public Certificate[] certificates; field in JarFileTest.Results 623 results.certificates = certs; in getSignedJarCerts() 638 assertEquals(Arrays.deepToString(result.certificates), 3, result.certificates.length); in testJarFile_Signed_ValidChain() 641 …assertEquals("CN=fake-chain", ((X509Certificate) result.certificates[0]).getSubjectDN().toString()… in testJarFile_Signed_ValidChain() 642 …assertEquals("CN=intermediate1", ((X509Certificate) result.certificates[1]).getSubjectDN().toStrin… in testJarFile_Signed_ValidChain() 643 … assertEquals("CN=root1", ((X509Certificate) result.certificates[2]).getSubjectDN().toString()); in testJarFile_Signed_ValidChain() 649 assertEquals(Arrays.deepToString(result.certificates), 3, result.certificates.length); in testJarFile_Signed_InvalidChain() 652 …assertEquals("CN=fake-chain", ((X509Certificate) result.certificates[0]).getSubjectDN().toString()… in testJarFile_Signed_InvalidChain() 653 …assertEquals("CN=intermediate1", ((X509Certificate) result.certificates[1]).getSubjectDN().toStrin… in testJarFile_Signed_InvalidChain() 654 … assertEquals("CN=root1", ((X509Certificate) result.certificates[2]).getSubjectDN().toString()); in testJarFile_Signed_InvalidChain() [all …]
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | PKIXCertPathValidator.java | 91 List<X509Certificate> certList = params.certificates(); in validate() 171 int certPathLen = params.certificates().size(); in validate() 223 params.certificates(), in validate()
|
D | PKIX.java | 122 List<X509Certificate> certificates() { in certificates() method in PKIX.ValidatorParams
|
D | RevocationChecker.java | 154 new CollectionCertStoreParameters(params.certificates()))); in init()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | Identity2Test.java | 253 java.security.Certificate[] certs = sub.certificates(); in test_certificates() 258 assertEquals(0, sub.certificates().length); in test_certificates() 282 1, sub.certificates().length); in test_removeCertificateLjava_security_Certificate() 286 0, sub.certificates().length); in test_removeCertificateLjava_security_Certificate()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertificateFactory.java | 446 generateCertPath(List<? extends Certificate> certificates) in generateCertPath() argument 449 return(certFacSpi.engineGenerateCertPath(certificates)); in generateCertPath()
|
D | CertificateFactorySpi.java | 176 engineGenerateCertPath(List<? extends Certificate> certificates) in engineGenerateCertPath() argument
|
/libcore/ojluni/annotations/hiddenapi/sun/security/pkcs/ |
D | PKCS7.java | 56 java.security.cert.X509Certificate[] certificates, in PKCS7() argument 66 java.security.cert.X509Certificate[] certificates, in PKCS7() argument 175 private java.security.cert.X509Certificate[] certificates; field in PKCS7
|
/libcore/ojluni/annotations/mmodule/sun/security/pkcs/ |
D | PKCS7.annotated.java | 58 …ty.pkcs.ContentInfo contentInfo, java.security.cert.X509Certificate[] certificates, java.security.… in PKCS7() argument 61 …ty.pkcs.ContentInfo contentInfo, java.security.cert.X509Certificate[] certificates, sun.security.p… in PKCS7() argument
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLConnectionTest.java | 3378 private String certificatesToString(X509Certificate[] certificates) { 3380 for (X509Certificate certificate : certificates) {
|
/libcore/api/ |
D | current.txt | 7354 method @Deprecated public java.security.Certificate[] certificates();
|