Searched refs:certificates (Results 1 - 25 of 32) sorted by relevance

12

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
H A DCollectionCertStoreParametersTest.java87 Vector certificates = new Vector();
88 certificates.add(new MyCertificate("TEST", new byte[] { }));
89 new CollectionCertStoreParameters(certificates);
103 Vector certificates = new Vector();
104 certificates.add(new String("Not a Certificate"));
105 new CollectionCertStoreParameters(certificates);
118 Vector certificates = new Vector();
121 new CollectionCertStoreParameters(certificates);
123 assertTrue("isRefUsed_1", certificates == cp.getCollection());
127 certificates
[all...]
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/cert/
H A DMyCertPath.java37 * my certificates list
39 private final Vector certificates; field in class:MyCertPath
58 certificates = new Vector();
59 certificates.add(new MyCertificate("MyEncoding", encoding));
65 * @return certificates list
69 return Collections.unmodifiableList(certificates);
H A DMyCertificateFactorySpi.java120 public CertPath engineGenerateCertPath(List certificates) argument
122 if (certificates == null) {
124 throw new NullPointerException("certificates is null");
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
H A DFakeSSLSession.java27 private final Certificate[] certificates; field in class:FakeSSLSession
29 public FakeSSLSession(Certificate... certificates) throws Exception { argument
30 this.certificates = certificates;
66 if (certificates.length == 0) {
69 return certificates;
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
H A DPKIXCertPath.java45 * CertPath implementation for X.509 certificates.
66 private List certificates; field in class:PKIXCertPath
152 // make sure all certificates are accounted for.
161 PKIXCertPath(List certificates) argument
164 this.certificates = sortCerts(new ArrayList(certificates));
189 certificates = new ArrayList();
195 certificates.add(0, certFactory.generateCertificate(
202 certificates = new ArrayList();
207 certificates
[all...]
H A DCertificateFactory.java29 * class for dealing with X509 certificates.
32 * base 64 encoded certs, as well as the BER binaries of certificates and some classes of PKCS#7
225 * Returns a (possibly empty) collection view of the certificates
354 List certificates)
357 Iterator iter = certificates.iterator();
370 return new PKIXCertPath(certificates);
353 engineGenerateCertPath( List certificates) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
H A DSignedData.java25 private ASN1Set certificates; field in class:SignedData
55 certificates = _certificates;
84 certificates = ASN1Set.getInstance(tagged, false);
117 return certificates;
137 * certificates
153 if (certificates != null)
155 v.add(new DERTaggedObject(false, 0, certificates));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
H A DSignedData.java27 * certificates [0] IMPLICIT CertificateSet OPTIONAL,
39 * IF ((certificates is present) AND
40 * (any certificates with a type of other are present)) OR
45 * IF (certificates is present) AND
46 * (any version 2 attribute certificates are present)
49 * IF ((certificates is present) AND
50 * (any version 1 attribute certificates are present)) OR
70 private ASN1Set certificates; field in class:SignedData
107 ASN1Set certificates,
111 this.version = calculateVersion(contentInfo.getContentType(), certificates, crl
104 SignedData( ASN1Set digestAlgorithms, ContentInfo contentInfo, ASN1Set certificates, ASN1Set crls, ASN1Set signerInfos) argument
[all...]
/external/boringssl/src/crypto/x509/
H A Dpkcs7.c94 CBS signed_data, certificates; local
104 if (!CBS_get_asn1(&signed_data, &certificates,
111 while (CBS_len(&certificates) > 0) {
116 if (!CBS_get_asn1_element(&certificates, &cert, CBS_ASN1_SEQUENCE)) {
163 /* Even if only CRLs are included, there may be an empty certificates block.
167 !CBS_get_asn1(&signed_data, NULL /* certificates */,
295 CBB certificates; local
298 if (!CBB_add_asn1(out, &certificates,
309 !CBB_add_space(&certificates, &buf, len) ||
/external/apache-harmony/security/src/test/api/java.injected/java/security/
H A DIdentityTest.java121 assertSame(c1, i.certificates()[0]);
139 assertSame(c1, i.certificates()[0]);
166 // assertSame(c1, i.certificates()[0]);
168 // assertEquals(0, i.certificates().length);
184 * verify certificates() returns a copy of all certificates for this identity
193 Certificate[] s = i.certificates();
200 s = i.certificates();
289 * verify Identity.setPublicKey() removes old key and all identity's certificates
298 assertEquals(2, i.certificates()
[all...]
/external/conscrypt/src/main/java/org/conscrypt/
H A DSSLParametersImpl.java347 static byte[][] encodeIssuerX509Principals(X509Certificate[] certificates) argument
349 byte[][] principalBytes = new byte[certificates.length][];
350 for (int i = 0; i < certificates.length; i++) {
351 principalBytes[i] = certificates[i].getIssuerX500Principal().getEncoded();
365 OpenSSLX509Certificate[] certificates = new OpenSSLX509Certificate[certificateRefs.length];
367 certificates[i] = new OpenSSLX509Certificate(certificateRefs[i]);
369 return certificates;
419 X509Certificate[] certificates = keyManager.getCertificateChain(alias);
420 if (certificates == null) {
423 PublicKey publicKey = (certificates
[all...]
H A DOpenSSLX509CertificateFactory.java168 * It wasn't, so just try to keep grabbing certificates until we
327 public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) argument
329 final List<X509Certificate> filtered = new ArrayList<X509Certificate>(certificates.size());
330 for (int i = 0; i < certificates.size(); i++) {
331 final Certificate c = certificates.get(i);
H A DOpenSSLX509CertPath.java81 protected OpenSSLX509CertPath(List<? extends X509Certificate> certificates) { argument
84 mCertificates = certificates;
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
H A DCMSSignedDataGenerator.java190 ASN1Set certificates = null;
194 certificates = CMSUtils.createBerSetFromList(certs);
209 certificates,
H A DCMSSignedData.java497 * @param certificates the new certificates to be used.
498 * @param attrCerts the new attribute certificates to be used.
505 Store certificates,
521 if (certificates != null || attrCerts != null)
525 if (certificates != null)
527 certs.addAll(CMSUtils.getCertificatesFromStore(certificates));
503 replaceCertificatesAndCRLs( CMSSignedData signedData, Store certificates, Store attrCerts, Store revocations) argument
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
H A DCustomTrust.java67 // PEM files for root certificates of Comodo and Entrust. These two CAs are sufficient to view
141 * Returns a SSL context that trusts {@code certificates} and none other. HTTPS services whose
142 * certificates have not been signed by these certificates will fail with a {@code
145 * <p>This can be used to replace the host platform's built-in trusted certificates with a custom
146 * set. This is useful in development where certificate authority-trusted certificates aren't
149 * <p>See also {@link CertificatePinner}, which can limit trusted certificates while still using
153 * Relying on your own trusted certificates limits your server team's ability to update their TLS
154 * certificates. By installing a specific set of trusted certificates, yo
[all...]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
H A DCertificateFactory_ImplTest.java102 * Base64 encoded PkiPath object containing 2 X.509 certificates.
640 List certificates;
645 certificates = factory.generateCertPath(bais).getCertificates();
647 2, certificates.size());
651 for (Iterator it = certificates.iterator(); it.hasNext(); ) {
659 certificates =
662 2, certificates.size());
666 for (Iterator it = certificates.iterator(); it.hasNext(); ) {
674 certificates =
677 2, certificates
[all...]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/tls/
H A DOkHostnameVerifier.java64 Certificate[] certificates = session.getPeerCertificates();
65 return verify(host, (X509Certificate) certificates[0]);
180 // yet absolute. This is needed because server certificates do not normally contain absolute
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
H A DJavaApiConverter.java304 List<Certificate> certificates = handshake.localCertificates();
305 return certificates.size() > 0 ? certificates : null;
312 List<Certificate> certificates = handshake.peerCertificates();
313 return certificates.size() > 0 ? certificates : null;
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
H A DIdentity2Test.java213 * @tests java.security.Identity#certificates()
224 java.security.Certificate[] certs = sub.certificates();
256 java.security.Certificate[] certs = sub.certificates();
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DCache.java499 * is the length of the peer certificate chain. These certificates are
502 * certificates are also base64-encoded and appear each on their own
616 private void writeCertList(BufferedSink sink, List<Certificate> certificates) argument
619 sink.writeDecimalLong(certificates.size());
621 for (int i = 0, size = certificates.size(); i < size; i++) {
622 byte[] bytes = certificates.get(i).getEncoded();
/external/conscrypt/src/test/java/org/conscrypt/
H A DNativeCryptoTest.java118 * Lazily create shared test certificates.
862 private final long[] certificates; field in class:NativeCryptoTest.ServerHooks
873 public ServerHooks(OpenSSLKey privateKey, long[] certificates) { argument
875 this.certificates = certificates;
884 if (certificates != null) {
885 NativeCrypto.SSL_use_certificate(s, certificates);
924 fail("Server asked for client certificates");
/external/libvncserver/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/
H A Dssvnc.tcl527 web browser comes with a bundle of Certificate Authority certificates
531 the certificates manually. However, it is possible to use Certificate
537 (However, see the note at the end of this section about CA certificates.)
542 See the "Certs... -> Help" for information on how to manage certificates.
782 certificates by an external method to be completely safe).
874 certificates or passwords). In general if the VNC Server requires
2057 web browser comes with a bundle of Certificate Authority certificates
2061 the certificates manually. However, it is possible to use Certificate
2102 Under "Verify All Certs", new certificates are saved in the 'Accepted Certs'
2105 the pool of accepted certificates i
[all...]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
H A DURLConnectionTest.java3271 private String certificatesToString(X509Certificate[] certificates) { argument
3273 for (X509Certificate certificate : certificates) {
/external/conscrypt/src/main/native/
H A Dorg_conscrypt_NativeCrypto.cpp8363 JNI_TRACE("ssl=%p NativeCrypto_SSL_use_certificate certificates=%p", ssl, certificatesJava);
8369 jniThrowNullPointerException(env, "certificates == null");
8370 JNI_TRACE("ssl=%p NativeCrypto_SSL_use_certificate => certificates == null", ssl);
8376 jniThrowException(env, "java/lang/IllegalArgumentException", "certificates.length == 0");
8377 JNI_TRACE("ssl=%p NativeCrypto_SSL_use_certificate => certificates.length == 0", ssl);
8381 ScopedLongArrayRO certificates(env, certificatesJava);
8382 if (certificates.get() == NULL) {
8383 JNI_TRACE("ssl=%p NativeCrypto_SSL_use_certificate => certificates == null", ssl);
8388 X509_dup_nocopy(reinterpret_cast<X509*>(static_cast<uintptr_t>(certificates[0]))));
8390 // Note this shouldn't happen since we checked the number of certificates abov
[all...]

Completed in 9251 milliseconds

12