HomeSort by relevance Sort by last modified time
    Searched refs:Certificate (Results 176 - 200 of 364) sorted by null

1 2 3 4 5 6 78 91011>>

  /libcore/luni/src/test/java/tests/security/cert/
CertificateFactory2Test.java 38 import java.security.cert.Certificate;
132 Certificate cert = certFactory.generateCertificate(dis);
134 Collection<? extends Certificate> col = certFactory.generateCertificates(dis);
152 List<Certificate> list = null;
CertificateFactory4Test.java 35 import java.security.cert.Certificate;
59 // Test for method java.security.cert.Certificate
95 Collection<? extends Certificate> certs = fact.generateCertificates(is);
100 // the certificate could not be found, skip it
121 // the certificate could not be found, skip it
143 // the certificate could not be found, skip it
251 * extends Certificate> certificates)
257 (List<Certificate>) null);
290 "-----BEGIN CERTIFICATE-----\n"
304 + "-----END CERTIFICATE-----\n"
    [all...]
  /libcore/ojluni/src/main/java/java/net/
JarURLConnection.java 292 * Return the Certificate object for this connection if the URL
299 * @return the Certificate object for this connection if the URL
307 public java.security.cert.Certificate[] getCertificates()
  /libcore/ojluni/src/main/java/sun/security/provider/certpath/
KeyChecker.java 38 * certificate. It also checks whether the final certificate in a
59 * on the target certificate
99 * the specified certificate.
101 * @param cert the Certificate
103 * @throws CertPathValidatorException if certificate does not verify
106 public void check(Certificate cert, Collection<String> unresCritExts)
113 // if final certificate, check that target constraints are satisfied
117 throw new CertPathValidatorException("target certificate " +
121 // otherwise, verify that keyCertSign bit is set in CA certificate
    [all...]
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
Identity2Test.java 47 public static class CertificateImpl implements java.security.Certificate {
86 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:Identity2Test
100 + "-----END CERTIFICATE-----\n";
104 String certificate2 = "-----BEGIN CERTIFICATE-----\n"
118 + "-----END CERTIFICATE-----\n";
124 certArray = new ByteArrayInputStream(certificate
224 java.security.Certificate[] certs = sub.certificates();
225 assertEquals("Certificate not contained in the identity",
230 * @tests java.security.Identity#addCertificate(java.security.Certificate)
    [all...]
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/
CertUtils.java 25 import org.bouncycastle.asn1.x509.Certificate;
46 throw new IllegalStateException("cannot produce certificate signature");
58 throw new IllegalStateException("cannot produce attribute certificate signature");
70 throw new IllegalStateException("cannot produce certificate signature");
87 private static Certificate generateStructure(TBSCertificate tbsCert, AlgorithmIdentifier sigAlgId, byte[] signature)
95 return Certificate.getInstance(new DERSequence(v));
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
AttributeCertificateHolder.java 8 import java.security.cert.Certificate;
40 * -- the holder's Public Key Certificate
110 * <li>1 - publicKeyCert - A hash of the public key certificate of the
116 * This cannot be used if a v1 attribute certificate is used.
139 * <li>1 - publicKeyCert - A hash of the public key certificate of the
274 * Return any principal objects inside the attribute certificate holder
309 * @return the certificate serial number, null if no BaseCertificateID is
328 public boolean match(Certificate cert)
418 return match((Certificate)obj);
  /external/conscrypt/src/main/java/org/conscrypt/
AbstractSessionContext.java 24 import java.security.cert.Certificate;
219 Certificate[] certs = session.getPeerCertificates();
222 for (Certificate cert : certs) {
OpenSSLSessionImpl.java 21 import java.security.cert.Certificate;
162 * @return a X509 certificate or null if no principal was defined
174 * Returns the certificate(s) of the principal (subject) of this concrete SSL
178 * that of the certification authority) or null if no certificate
182 public Certificate[] getLocalCertificates() {
187 * Returns the certificate(s) of the peer in this SSL session
193 * certificate were used during the SSL connection.
194 * @throws SSLPeerUnverifiedException if either a non-X.509 certificate
238 * determined via certificate(s).
241 * certificate were used during the SSL connection
    [all...]
  /frameworks/base/core/java/org/apache/http/conn/ssl/
AbstractVerifier.java 37 import java.security.cert.Certificate;
75 * that CA's would never foolishly allow such a certificate to happen?
99 Certificate[] certs = session.getPeerCertificates();
106 Certificate[] certs = session.getPeerCertificates();
145 String msg = "Certificate for <" + host + "> doesn't contain CN or DNS subjectAlt";
153 // establish the socket to the hostname in the certificate.
191 throw new SSLException("hostname in certificate didn't match: <" + host + "> !=" + buf);
237 * @return Array of SubjectALT DNS names stored in the certificate.
247 .log(Level.FINE, "Error parsing certificate.", cpe);
  /frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
WiFiKeyManager.java 12 import java.security.cert.Certificate;
45 Certificate cert = mKeyStore.getCertificate(alias);
151 for (Certificate certificate : mKeyStore.getCertificateChain(alias)) {
152 if (certificate instanceof X509Certificate) {
153 certs.add((X509Certificate) certificate);
OSUSocketFactory.java 23 import java.security.cert.Certificate;
170 for (X509Certificate certificate : mTrustManager.getTrustChain()) {
171 for (List<?> name : certificate.getSubjectAlternativeNames()) {
175 return certificate;
289 Certificate cert = keyStore.getCertificate(alias);
300 Certificate cert = keyStore.getCertificate(
329 public void check(Certificate cert, Collection<String> unresolvedCritExts)
  /libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
URLJarFile.java 35 import java.security.cert.Certificate;
249 public java.security.cert.Certificate[] getCertificates() {
250 Certificate[] certs = je.getCertificates();
  /libcore/ojluni/src/main/java/sun/security/ssl/
SunX509KeyManagerImpl.java 31 import java.security.cert.Certificate;
61 * . the certificate extensions allow the certificate to be used for
135 Certificate[] certs = ks.getCertificateChain(alias);
141 Certificate[] tmp = new X509Certificate[certs.length];
162 * Returns the certificate chain associated with the given alias.
164 * @return the certificate chain (ordered with the user's certificate first
165 * and the root certificate authority last)
197 * certificate issuer authorities recognized by the peer (if any)
    [all...]
  /libcore/support/src/test/java/libcore/java/security/
TestKeyStore.java 66 import java.security.cert.Certificate;
203 .subject("CN=Test Root Certificate Authority")
209 .subject("CN=Test Intermediate Certificate Authority")
231 .subject("CN=Test Root Certificate Authority 2")
236 .subject("CN=Test Intermediate Certificate Authority")
269 * Return a server keystore with a matched RSA certificate and
270 * private key as well as a CA certificate.
278 * Return a keystore with a CA certificate
286 * Return a client keystore with a matched RSA certificate and
287 * private key as well as a CA certificate
793 X509Certificate certificate = (X509Certificate) privateKey.getCertificate(); local
846 Certificate certificate = certificateEntry.getTrustedCertificate(); local
938 Certificate certificate = certificateEntry.getTrustedCertificate(); local
    [all...]
  /packages/apps/Settings/tests/app/src/com/android/settings/vpn2/
CertInstallerHelper.java 46 import java.security.cert.Certificate;
56 * Certificate installer helper to extract information from a provided file
65 private X509Certificate mUserCert; // user certificate
110 Log.e(TAG, "failed to extract certificate" + e);
112 Log.e(TAG, "failed to extract certificate" + e);
114 Log.e(TAG, "failed to extract certificate" + e);
116 Log.e(TAG, "failed to extract certificate" + e);
136 Certificate[] certs = entry.getCertificateChain();
139 for (Certificate c : certs) {
167 * Extract certificate from the given file, and install it to keystor
    [all...]
  /external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
PairingSession.java 39 import java.security.cert.Certificate;
209 Certificate clientCert = mPairingContext.getClientCertificate();
210 Certificate serverCert = mPairingContext.getServerCertificate();
379 Certificate clientCert = mPairingContext.getClientCertificate();
381 logDebug("Client certificate:");
385 Certificate serverCert = mPairingContext.getServerCertificate();
388 logDebug("Server certificate:");
  /libcore/support/src/test/java/libcore/javax/net/ssl/
TestSSLContext.java 33 import java.security.cert.Certificate;
241 * SSLContext with certificate and key as well as SSLServerSocket
314 * certificate chain from the given KeyStore and a TrustManager
347 public static void assertCertificateInKeyStore(Certificate certificate,
354 Certificate keyStoreCertificate = keyStore.getCertificate(alias);
355 if (certificate.equals(keyStoreCertificate)) {
364 Certificate[] serverChain)
371 Certificate[] clientChain)
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Cache.java 30 import java.security.cert.Certificate;
520 * is the length of the peer certificate chain. These certificates are
522 * contains the length of the local certificate chain. These
555 List<Certificate> peerCertificates = readCertificateList(source);
556 List<Certificate> localCertificates = readCertificateList(source);
618 private List<Certificate> readCertificateList(BufferedSource source) throws IOException {
624 List<Certificate> result = new ArrayList<>(length);
637 private void writeCertList(BufferedSink sink, List<Certificate> certificates)
  /libcore/luni/src/test/java/libcore/javax/net/ssl/
KeyManagerFactoryTest.java 26 import java.security.cert.Certificate;
237 X509Certificate certificate = certificateChain[0]; local
238 assertEquals(keyType, keyAlgName, certificate.getPublicKey().getAlgorithm());
240 String sigAlgName = certificate.getSigAlgName();
245 Arrays.<Certificate>asList(privateKeyEntry.getCertificateChain()),
246 Arrays.<Certificate>asList(certificateChain));
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
Identity2Test.java 23 import java.security.Certificate;
45 public static class CertificateImpl implements java.security.Certificate {
84 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:Identity2Test
98 + "-----END CERTIFICATE-----\n";
100 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate.getBytes());
102 String certificate2 = "-----BEGIN CERTIFICATE-----\n"
116 + "-----END CERTIFICATE-----\n";
253 java.security.Certificate[] certs = sub.certificates();
254 assertEquals("Certificate not contained in the identity"
    [all...]
  /frameworks/base/core/java/android/security/net/config/
KeyStoreCertificateSource.java 22 import java.security.cert.Certificate;
31 * {@link CertificateSource} which provides certificates from trusted certificate entries of a
  /libcore/ojluni/src/main/java/java/security/cert/
CertStore.java 41 * A class for retrieving <code>Certificate</code>s and <code>CRL</code>s
51 * retrieve <code>Certificate</code>s and <code>CRL</code>s by calling its
134 * Returns a <code>Collection</code> of <code>Certificate</code>s that
135 * match the specified selector. If no <code>Certificate</code>s
140 * <code>Certificate</code>s that match the selector. For instance,
143 * contain the <code>Certificate</code>s it is looking for.
152 * <code>Certificate</code>s should be returned. Specify <code>null</code>
153 * to return all <code>Certificate</code>s (if supported).
154 * @return A <code>Collection</code> of <code>Certificate</code>s that
158 public final Collection<? extends Certificate> getCertificate
    [all...]
  /libcore/ojluni/src/main/java/javax/security/cert/
X509Certificate.java 48 * way to access all the version 1 attributes of an X.509 certificate.
56 * Certificate ::= SEQUENCE {
68 * These certificates are managed and vouched for by <em>Certificate
89 * Here is sample code to instantiate an X.509 certificate:
97 * byte[] certData = &lt;certificate read from a file, say&gt;
101 * In either case, the code that instantiates an X.509 certificate
126 * use the standard Java SE certificate classes located in
131 * @see Certificate
134 public abstract class X509Certificate extends Certificate {
169 * certificate is expected to be in the input stream
    [all...]
  /libcore/ojluni/src/main/java/sun/misc/
Resource.java 177 public java.security.cert.Certificate[] getCertificates() {

Completed in 544 milliseconds

1 2 3 4 5 6 78 91011>>