/libcore/luni/src/test/java/tests/security/cert/ |
H A D | CollectionCertStoreParametersTest.java | 76 Vector<Certificate> certificates = new Vector<Certificate>(); 77 certificates.add(new MyCertificate("TEST", new byte[] {})); 78 new CollectionCertStoreParameters(certificates); 89 Vector<String> certificates = new Vector<String>(); 90 certificates.add(new String("Not a Certificate")); 91 new CollectionCertStoreParameters(certificates); 99 Vector<Certificate> certificates = new Vector<Certificate>(); 102 new CollectionCertStoreParameters(certificates); 104 assertTrue("isRefUsed_1", certificates == cp.getCollection()); 108 certificates [all...] |
H A D | CertStore2Test.java | 216 Collection<? extends Certificate> certificates = certStore.getCertificates(null); 217 assertNull(certificates); 223 Collection<? extends Certificate> certificates = certStore.getCertificates(new MyCertSelector()); 224 assertNotNull(certificates); 225 assertTrue(certificates.isEmpty());
|
/libcore/ojluni/src/main/java/java/security/ |
H A D | Identity.java | 43 * <p>An Identity also has a set of certificates (all certifying its own 44 * public key). The Principal names specified in these certificates need 95 * The certificates for this identity. 99 Vector<Certificate> certificates; field in class:Identity 166 * identity's certificates are removed by this operation. 189 certificates = new Vector<Certificate>(); 251 if (certificates == null) { 252 certificates = new Vector<Certificate>(); 262 certificates.addElement(certificate); 299 if (certificates ! 314 public Certificate[] certificates() { method in class:Identity [all...] |
/libcore/luni/src/main/java/libcore/util/ |
H A D | RecoverySystem.java | 36 * that specified in {@code blockStream}. The public key of the certificates specified 46 X509Certificate[] certificates = block.getCertificates(); 47 if (certificates == null || certificates.length == 0) { 48 throw new SignatureException("signature contains no certificates"); 50 X509Certificate cert = certificates[0];
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
H A D | MyCertPath.java | 41 * my certificates list 43 private final Vector<MyCertificate> certificates; field in class:MyCertPath 61 certificates = new Vector<MyCertificate>(); 62 certificates.add(new MyCertificate("MyEncoding", encoding)); 68 * @return certificates list 72 return Collections.unmodifiableList(certificates);
|
H A D | MyCertificateFactorySpi.java | 124 public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) { argument 125 if (certificates == null) { 127 throw new NullPointerException("certificates is null");
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
H A D | PKCS7.java | 70 private X509Certificate[] certificates = null; field in class:PKCS7 182 * @param certificates an array of X.509 certificates. 188 X509Certificate[] certificates, 195 this.certificates = certificates; 202 X509Certificate[] certificates, 204 this(digestAlgorithmIds, contentInfo, certificates, null, signerInfos); 211 certificates = new X509Certificate[contents.length]; 225 certificates[ 186 PKCS7(AlgorithmId[] digestAlgorithmIds, ContentInfo contentInfo, X509Certificate[] certificates, X509CRL[] crls, SignerInfo[] signerInfos) argument 200 PKCS7(AlgorithmId[] digestAlgorithmIds, ContentInfo contentInfo, X509Certificate[] certificates, SignerInfo[] signerInfos) argument [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | HostnameVerifierBenchmark.java | 33 * captures the served certificates as a byte array. It then verifies each 73 final Certificate[] certificates = bytesToCertificates(encodedCertificates); 76 return certificates; 83 private byte[][] certificatesToBytes(Certificate[] certificates) throws Exception { argument 84 byte[][] result = new byte[certificates.length][]; 85 for (int i = 0, certificatesLength = certificates.length; i < certificatesLength; i++) { 86 result[i] = certificates[i].getEncoded();
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
H A D | SunX509KeyManagerImpl.java | 51 * chooseClientAlias() and chooseServerAlias() to find the certificates to 57 * certificates. In particular, it is *not* guaranteed that: 58 * . the certificates are within their validity period and not revoked 94 X509Certificate[] certificates; field in class:SunX509KeyManagerImpl.X509Credentials 97 X509Credentials(PrivateKey privateKey, X509Certificate[] certificates) { argument 98 // assert privateKey and certificates != null 100 this.certificates = certificates; 107 for (int i = 0; i < certificates.length; i++) { 109 certificates[ [all...] |
/libcore/luni/src/test/java/tests/targets/security/cert/ |
H A D | CertPathBuilderTestPKIX.java | 70 List<? extends Certificate> certificates = path.getCertificates(); 74 assertEquals(2, certificates.size()); 76 Certificate endEntityCert = certificates.get(0);
|
/libcore/ojluni/src/main/java/java/security/cert/ |
H A D | CertificateFactorySpi.java | 47 * <p>A certificate factory for X.509 must return certificates that are an 76 * factory implements X.509 certificates, the returned certificate object 79 * <p>In the case of a certificate factory for X.509 certificates, the 159 * The certificates supplied must be of a type supported by the 168 * @param certificates a <code>List</code> of <code>Certificate</code>s 170 * certificates 176 engineGenerateCertPath(List<? extends Certificate> certificates) argument 209 * Returns a (possibly empty) collection view of the certificates read 216 * factory implements X.509 certificates, the elements in the returned 219 * <p>In the case of a certificate factory for X.509 certificates, [all...] |
H A D | CertificateFactory.java | 47 * <p>For encodings consisting of multiple certificates, use 49 * parse a collection of possibly unrelated certificates. Otherwise, 54 * <p>A certificate factory for X.509 must return certificates that are an 58 * <p>The following example reads a file with Base64 encoded certificates, 81 * in a file and extracts all the certificates from it:<p> 331 * factory implements X.509 certificates, the returned certificate object 334 * <p>In the case of a certificate factory for X.509 certificates, the 431 * The certificates supplied must be of a type supported by the 435 * @param certificates a <code>List</code> of <code>Certificate</code>s 437 * certificates 442 generateCertPath(List<? extends Certificate> certificates) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
H A D | PKIXCertPathValidator.java | 91 List<X509Certificate> certList = params.certificates(); 165 int certPathLen = params.certificates().size(); 216 params.certificates(),
|
H A D | PKIX.java | 123 List<X509Certificate> certificates() { method in class:PKIX.ValidatorParams
|
H A D | RevocationChecker.java | 154 new CollectionCertStoreParameters(params.certificates())));
|
/libcore/luni/src/test/java/tests/java/security/ |
H A D | IdentityTest.java | 129 assertSame(c1, i.certificates()[0]); 146 assertSame(c1, i.certificates()[0]); 172 // assertSame(c1, i.certificates()[0]); 174 // assertEquals(0, i.certificates().length); 190 * verify certificates() returns a copy of all certificates for this identity 199 java.security.Certificate[] s = i.certificates(); 206 s = i.certificates(); 295 * verify Identity.setPublicKey() removes old key and all identity's certificates 305 assertEquals(2, i.certificates() [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
H A D | JarFileTest.java | 448 "No certificates found during signed jar test for jar \"" 577 assertNull("found certificates", entry.getCertificates()); 627 // JAR with certificates that loop 690 "No certificates found during signed jar test for jar \"" 695 public Certificate[] certificates; field in class:JarFileTest.Results 718 results.certificates = certs; 733 assertEquals(Arrays.deepToString(result.certificates), 3, result.certificates.length); 736 assertEquals("CN=fake-chain", ((X509Certificate) result.certificates[0]).getSubjectDN().toString()); 737 assertEquals("CN=intermediate1", ((X509Certificate) result.certificates[ [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | Identity2Test.java | 242 * java.security.Identity#certificates() 253 java.security.Certificate[] certs = sub.certificates(); 261 // AndroidOnly("Spec says: Removing unknown certificates throw an exception. " 262 // + "The RI ignores unknown certificates.") 279 1, sub.certificates().length); 283 0, sub.certificates().length);
|
/libcore/ojluni/src/main/java/sun/security/provider/ |
H A D | X509Factory.java | 42 * This class defines a certificate factory for X.509 v3 certificates & 136 * Note that all certificates created via generateCertificate(InputStream) 138 * It is useful for certificates that cannot be created via 284 * The certificates supplied must be of a type supported by the 288 * @param certificates a <code>List</code> of <code>Certificate</code>s 290 * certificates 295 engineGenerateCertPath(List<? extends Certificate> certificates) argument 298 return(new X509CertPath(certificates)); 318 * Returns a (possibly empty) collection view of X.509 certificates read 321 * @param is the input stream with the certificates [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 3048 private String certificatesToString(X509Certificate[] certificates) { argument 3050 for (X509Certificate certificate : certificates) {
|