HomeSort by relevance Sort by last modified time
    Searched refs:Certificate (Results 101 - 125 of 422) sorted by null

1 2 3 45 6 7 8 91011>>

  /frameworks/base/core/java/android/security/net/config/
ResourceCertificateSource.java 23 import java.security.cert.Certificate;
56 Collection<? extends Certificate> certs;
69 for (Certificate cert : certs) {
  /libcore/luni/src/test/java/tests/targets/security/cert/
CertPathValidatorTestPKIX.java 27 import java.security.cert.Certificate;
70 List<Certificate> certList = new ArrayList<Certificate>();
106 private String selfSignedCert = "-----BEGIN CERTIFICATE-----\n"
117 + "DC9BBx1sVKoji17RP4R8CTf1\n" + "-----END CERTIFICATE-----";
CertificateTest.java 27 import java.security.cert.Certificate;
60 * Following certificate chain was taken from https://www.verisign.com and
61 * uses MD2withRSA for the root certificate. This chain stops validating
66 * A selfsigned certificate using MD2withRSA
69 * Certificate:
106 "-----BEGIN CERTIFICATE-----\n"
119 + "-----END CERTIFICATE-----\n";
122 * A certificate signed by selfSignedCertMD2
125 * Certificate:
165 * Certificate Sign, CRL Sig
616 Certificate certificate = certificateFactory local
629 Certificate certificate = certificateFactory local
    [all...]
  /libcore/ojluni/src/main/java/java/security/cert/
CertificateFactory.java 43 * This class defines the functionality of a certificate factory, which is
44 * used to generate certificate, certification path ({@code CertPath})
45 * and certificate revocation list (CRL) objects from their encodings.
51 * a {@code CertPath} (a certificate chain) and subsequently
54 * <p>A certificate factory for X.509 must return certificates that are an
59 * which are each bounded at the beginning by -----BEGIN CERTIFICATE-----, and
60 * bounded at the end by -----END CERTIFICATE-----. We convert the
64 * {@code generateCertificate} consumes only one certificate, and the
65 * read position of the input stream is positioned to the next certificate in
75 * Certificate cert = cf.generateCertificate(bis)
    [all...]
  /prebuilts/go/darwin-x86/src/crypto/x509/
cert_pool.go 17 certs []*Certificate
42 // given certificate. If any candidates were rejected then errCert will be set
45 func (s *CertPool) findVerifiedParents(cert *Certificate) (parents []int, errCert *Certificate, err error) {
69 func (s *CertPool) contains(cert *Certificate) bool {
84 // AddCert adds a certificate to a pool.
85 func (s *CertPool) AddCert(cert *Certificate) {
87 panic("adding nil Certificate to CertPool")
90 // Check that the certificate isn't being added twice.
119 if block.Type != "CERTIFICATE" || len(block.Headers) != 0
    [all...]
  /prebuilts/go/linux-x86/src/crypto/x509/
cert_pool.go 17 certs []*Certificate
42 // given certificate. If any candidates were rejected then errCert will be set
45 func (s *CertPool) findVerifiedParents(cert *Certificate) (parents []int, errCert *Certificate, err error) {
69 func (s *CertPool) contains(cert *Certificate) bool {
84 // AddCert adds a certificate to a pool.
85 func (s *CertPool) AddCert(cert *Certificate) {
87 panic("adding nil Certificate to CertPool")
90 // Check that the certificate isn't being added twice.
119 if block.Type != "CERTIFICATE" || len(block.Headers) != 0
    [all...]
  /tools/apksig/src/test/java/com/android/apksig/internal/util/
Resources.java 24 import java.security.cert.Certificate;
63 Collection<? extends Certificate> certs;
71 for (Certificate cert : certs) {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/
BcKeyStoreSpi.java 22 import java.security.cert.Certificate;
79 static final int CERTIFICATE = 1;
111 Certificate[] certChain;
116 Certificate obj)
118 this.type = CERTIFICATE;
127 Certificate[] certChain)
139 Certificate[] certChain)
190 Certificate[] certChain)
333 Certificate[] getCertificateChain()
345 Certificate cert
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
CertificatePinner.java 19 import java.security.cert.Certificate;
34 * against attacks on certificate authorities. It also prevents connections
35 * through man-in-the-middle certificate authorities either known or unknown to
38 * <p>This class currently pins a certificate's Subject Public Key Info as
45 * <h3>Setting up Certificate Pinning</h3>
68 * As expected, this fails with a certificate pinning exception: <pre> {@code
70 * javax.net.ssl.SSLPeerUnverifiedException: Certificate pinning failure!
71 * Peer certificate chain:
85 * certificate pinner's configuration: <pre> {@code
118 * <h3>Warning: Certificate Pinning is Dangerous!</h3
    [all...]
  /external/pdfium/xfa/fxfa/parser/
cxfa_encrypt.cpp 15 {XFA_Element::Certificate, 1, 0},
  /cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/
AdminActionBookkeepingTest.java 27 import java.security.cert.Certificate;
38 "-----BEGIN CERTIFICATE-----\n" +
58 "-----END CERTIFICATE-----";
93 final Certificate cert = CertificateFactory.getInstance("X.509")
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
IssuerAndSerialNumber.java 12 import org.bouncycastle.asn1.x509.Certificate;
73 Certificate certificate)
75 this.name = certificate.getIssuer();
76 this.serialNumber = certificate.getSerialNumber();
80 * @deprecated use constructor taking Certificate
83 X509CertificateStructure certificate)
85 this.name = certificate.getIssuer();
86 this.serialNumber = certificate.getSerialNumber();
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
X509CertStoreSelector.java 4 import java.security.cert.Certificate;
34 public boolean match(Certificate cert)
  /external/conscrypt/common/src/main/java/org/conscrypt/
SSLNullSession.java 21 import java.security.cert.Certificate;
103 public Certificate[] getLocalCertificates() {
120 throw new SSLPeerUnverifiedException("No peer certificate");
125 throw new SSLPeerUnverifiedException("No peer certificate");
140 throw new SSLPeerUnverifiedException("No peer certificate");
KeyManagerImpl.java 27 import java.security.cert.Certificate;
102 Certificate[] certs = hash.get(alias).getCertificateChain();
156 final Certificate[] chain = entry.getValue().getCertificateChain();
157 final Certificate cert = chain[0];
195 // check that a certificate in the chain was issued by one of the specified issuers
196 for (Certificate certFromChain : chain) {
OpenSSLX509CertificateFactory.java 25 import java.security.cert.Certificate;
182 * there is an error during certificate generation.
276 public Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException {
285 public Collection<? extends Certificate> engineGenerateCertificates(
333 public CertPath engineGenerateCertPath(List<? extends Certificate> certificates)
337 final Certificate c = certificates.get(i);
340 throw new CertificateException("Certificate not X.509 type at index " + i);
  /external/curl/docs/cmdline-opts/
cert-status.d 4 Help: Verify the status of the server certificate
6 Tells curl to verify the status of the server certificate by using the
7 Certificate Status Request (aka. OCSP stapling) TLS extension.
10 response, if the response suggests that the server certificate has been revoked,
  /frameworks/base/core/java/android/util/jar/
StrictJarFile.java 29 import java.security.cert.Certificate;
157 * Return all certificate chains for a given {@link ZipEntry} belonging to this jar.
164 public Certificate[][] getCertificateChains(ZipEntry ze) {
183 public Certificate[] getCertificates(ZipEntry ze) {
185 Certificate[][] certChains = verifier.getCertificateChains(ze.getName());
189 for (Certificate[] chain : certChains) {
194 Certificate[] certs = new Certificate[count];
196 for (Certificate[] chain : certChains) {
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/
CertificateTest.java 35 import javax.security.cert.Certificate;
44 private class TBTCert extends Certificate {
70 * Test for <code>Certificate()</code> constructor<br>
76 assertEquals("Wrong string representation for Certificate", "TBTCert", tbt_cert.toString());
133 + "which is not an instance of Certificate", tbt_cert
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
WifiKeyStore.java 31 import java.security.cert.Certificate;
40 * This class provides the methods to access keystore for certificate management.
62 // Certificate and private key management for EnterpriseConfig
71 private static boolean hasHardwareBackedKey(Certificate certificate) {
72 return isHardwareBackedKey(certificate.getPublicKey());
88 Certificate[] clientCertificateChain = config.getClientCertificateChain();
163 * Install a certificate into the keystore.
165 * @param name The alias name of the certificate to be installed
166 * @param cert The certificate to be installe
    [all...]
  /libcore/luni/src/test/java/libcore/javax/net/ssl/
DefaultHostnameVerifierTest.java 25 import java.security.cert.Certificate;
149 new Certificate[] {new StubX509Certificate("cn=www.example.com")};
258 X509Certificate cert = parseCertificate("-----BEGIN CERTIFICATE-----\n"
275 + "-----END CERTIFICATE-----");
283 X509Certificate cert = parseCertificate("-----BEGIN CERTIFICATE-----\n"
299 + "-----END CERTIFICATE-----");
308 X509Certificate cert = parseCertificate("-----BEGIN CERTIFICATE-----\n"
326 + "-----END CERTIFICATE-----");
337 X509Certificate cert = parseCertificate("-----BEGIN CERTIFICATE-----\n"
354 + "-----END CERTIFICATE-----")
    [all...]
  /packages/apps/SecureElement/src/com/android/se/security/
AccessControlEnforcer.java 59 import java.security.cert.Certificate;
93 private static Certificate decodeCertificate(byte[] certData) throws CertificateException {
102 public static byte[] getAppCertHash(Certificate appCert) throws CertificateEncodingException {
319 // estimate SHA-1 hash value of the device application's certificate.
320 Certificate[] appCerts = getAPPCerts(packageName);
339 byte[] aid, Certificate[] appCerts)
359 * Returns Certificate chain for one package.
361 private Certificate[] getAPPCerts(String packageName)
376 ArrayList<Certificate> appCerts = new ArrayList<Certificate>();
    [all...]
  /libcore/luni/src/test/java/tests/security/cert/
CertStore2Test.java 17 import java.security.cert.Certificate;
216 Collection<? extends Certificate> certificates = certStore.getCertificates(null);
223 Collection<? extends Certificate> certificates = certStore.getCertificates(new MyCertSelector());
317 public boolean match(Certificate cert) {
328 public boolean match(Certificate crl) {
366 public Collection<? extends Certificate> engineGetCertificates(
372 return new ArrayList<Certificate>();
CertPathValidatorExceptionTest.java 33 import java.security.cert.Certificate;
393 * Test for <code>getIndex()</code>. Returns the index of the certificate
443 Certificate cert1 = mock(Certificate.class);
444 Certificate cert2 = mock(Certificate.class);
445 List<Certificate> certList = new ArrayList<Certificate>();
464 public List<Certificate> getCertificates() {
465 return new Vector<Certificate>();
    [all...]
  /frameworks/base/core/java/android/content/pm/
Signature.java 28 import java.security.cert.Certificate;
36 * Opaque, immutable representation of a signing certificate associated with an
46 private Certificate[] mCertificateChain;
57 * Create signature from a certificate chain. Used for backward
63 public Signature(Certificate[] certificateChain) throws CertificateEncodingException {
170 * certificate; shouldn't happen.
176 final Certificate cert = certFactory.generateCertificate(bais);
181 * Used for compatibility code that needs to check the certificate chain
196 for (Certificate c : mCertificateChain) {

Completed in 1067 milliseconds

1 2 3 45 6 7 8 91011>>