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

12 3 4 5 6 7 8 91011>>

  /libcore/luni/src/test/java/tests/security/cert/
CertificateTest.java 37 import java.security.cert.Certificate;
49 * Tests for <code>Certificate</code> fields and methods
60 * Test for <code>Certificate(String type)</code> method<br>
63 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding);
74 * Assertion: returns hash of the <code>Certificate</code> instance
78 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding);
79 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding);
93 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding);
94 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding);
103 * Assertion: returns this certificate typ
    [all...]
  /libcore/ojluni/src/main/java/javax/net/ssl/
HandshakeCompletedEvent.java 29 import java.security.cert.Certificate;
95 * Returns the certificate(s) that were sent to the peer during
97 * Note: This method is useful only when using certificate-based
102 * "best" certificate chain available, and transmits that to
104 * which certificate chain was actually used.
107 * certificate first followed by any
108 * certificate authorities. If no certificates were sent,
112 public java.security.cert.Certificate [] getLocalCertificates()
121 * Note: This method can be used only when using certificate-based
122 * cipher suites; using it with non-certificate-based cipher suites
    [all...]
  /cts/tools/utils/
certificates.py 21 class Certificate(object):
49 return Certificate(cert, key)
77 return Certificate(cert, key)
81 a = Certificate.create("Root A")
82 a_sha1 = Certificate.create("Root A", key=a.key, digest="sha1")
83 b = Certificate.create("Root B")
84 a_to_b = Certificate.create("Root A", b, a.key)
85 b_to_a = Certificate.create("Root B", a, b.key)
86 leaf1 = Certificate.create("Leaf", a)
87 intermediate_a = Certificate.create("intermediate", a
    [all...]
  /external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ssl/
HttpsURLConnection_ImplTest.java 22 import java.security.cert.Certificate;
73 public Certificate[] getLocalCertificates() {
81 public Certificate[] getServerCertificates()
  /libcore/ojluni/src/main/java/java/security/cert/
CertificateFactorySpi.java 41 * of a certificate factory for a particular certificate type, e.g., X.509.
43 * <p>Certificate factories are used to generate certificate, certification path
44 * (<code>CertPath</code>) and certificate revocation list (CRL) objects from
47 * <p>A certificate factory for X.509 must return certificates that are an
57 * @see Certificate
69 * Generates a certificate object and initializes it with
72 * <p>In order to take advantage of the specialized certificate format
73 * supported by this certificate factory
    [all...]
PKIXCertPathChecker.java 38 * extension of each certificate in a certification path.
45 * methods will be called, in turn, for each certificate processed by a PKIX
132 * Returns an immutable {@code Set} of X.509 certificate extensions
141 * All X.509 certificate extensions that a {@code PKIXCertPathChecker}
152 * Performs the check(s) on the specified certificate using its internal
158 * @param cert the {@code Certificate} to be checked
161 * @exception CertPathValidatorException if the specified certificate does
164 public abstract void check(Certificate cert,
175 public void check(Certificate cert) throws CertPathValidatorException {
CertStoreSpi.java 71 * Returns a <code>Collection</code> of <code>Certificate</code>s that
72 * match the specified selector. If no <code>Certificate</code>s
77 * <code>Certificate</code>s that match the selector. For instance,
80 * contain the <code>Certificate</code>s it is looking for.
89 * <code>Certificate</code>s should be returned. Specify <code>null</code>
90 * to return all <code>Certificate</code>s (if supported).
91 * @return A <code>Collection</code> of <code>Certificate</code>s that
95 public abstract Collection<? extends Certificate> engineGetCertificates
114 * and/or the certificate to be checked are especially useful.
  /libcore/ojluni/src/main/java/java/util/jar/
JarEntry.java 31 import java.security.cert.Certificate;
39 Certificate[] certs;
90 * Returns the <code>Certificate</code> objects for this entry, or
96 * <p>The returned certificate array comprises all the signer certificates
97 * that were used to verify this entry. Each signer certificate is
98 * followed by its supporting certificate chain (which may be empty).
99 * Each signer certificate and its supporting certificate chain are ordered
100 * bottom-to-top (i.e., with the signer certificate first and the (root)
101 * certificate authority last)
    [all...]
  /libcore/ojluni/src/main/java/sun/security/validator/
KeyStores.java 33 import java.security.cert.Certificate;
102 Certificate cert = ks.getCertificate(alias);
107 Certificate[] certs = ks.getCertificateChain(alias);
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
KSPrivateKeyEntryTest.java 25 import java.security.cert.Certificate;
50 private Certificate[] testChain;
54 testChain = new Certificate[5];
65 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code>
70 Certificate[] certs = new MyCertificate[1];//new Certificate[1];
80 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code>
86 Certificate[] chain = null;
94 chain = new Certificate[0];
102 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code
    [all...]
KeyStorePrivateKeyEntryTest.java 26 import java.security.cert.Certificate;
36 String certificateData = "-----BEGIN CERTIFICATE-----\n"
50 + "-----END CERTIFICATE-----\n";
62 Certificate certificate = cf.generateCertificate(certArray); local
63 assertTrue(certificate instanceof X509Certificate);
65 String algorithm = certificate.getPublicKey().getAlgorithm();
71 // If all the certificate in the chain is X509Certificate,
74 privateKey, new Certificate[] { certificate });
    [all...]
KeyStore3Test.java 38 import java.security.cert.Certificate;
52 private Certificate certificate; field in class:KeyStore3Test
58 String certificateData = "-----BEGIN CERTIFICATE-----\n"
72 + "-----END CERTIFICATE-----\n";
83 certificate = cf.generateCertificate(certArray);
113 mockKeyStore.setKeyEntry("Alias", null, null, new Certificate[] { certificate });
128 new Certificate[0]);
134 mockKeyStore.setKeyEntry("Alias", key, null, new Certificate[] { certificate })
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KSPrivateKeyEntryTest.java 27 import java.security.cert.Certificate;
43 private Certificate [] testChain;
47 testChain = new Certificate[5];
58 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code>
63 Certificate[] certs = new MyCertificate[1];//new Certificate[1];
73 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code>
79 Certificate[] chain = null;
87 chain = new Certificate[0];
94 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code
    [all...]
KeyStorePrivateKeyEntryTest.java 26 import java.security.cert.Certificate;
36 String certificateData = "-----BEGIN CERTIFICATE-----\n"
50 + "-----END CERTIFICATE-----\n";
62 Certificate certificate = cf.generateCertificate(certArray); local
63 assertTrue(certificate instanceof X509Certificate);
65 String algorithm = certificate.getPublicKey().getAlgorithm();
71 // If all the certificate in the chain is X509Certificate,
74 privateKey, new Certificate[] { certificate });
    [all...]
KeyStore3Test.java 37 import java.security.cert.Certificate;
49 private Certificate certificate; field in class:KeyStore3Test
55 String certificateData = "-----BEGIN CERTIFICATE-----\n"
69 + "-----END CERTIFICATE-----\n";
74 certificate = cf.generateCertificate(certArray);
104 mockKeyStore.setKeyEntry("Alias", null, null, new Certificate[]{certificate});
119 new Certificate[0]);
125 mockKeyStore.setKeyEntry("Alias", key, null, new Certificate[]{certificate})
    [all...]
  /libcore/luni/src/test/java/tests/security/
CertificateFactoryTest.java 20 import java.security.cert.Certificate;
43 Certificate certificate = certificateFactory.generateCertificate( local
45 assertNotNull(certificate);
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MyKeyStoreSpi.java 35 import java.security.cert.Certificate;
53 public Certificate[] engineGetCertificateChain(String alias) {
57 public Certificate engineGetCertificate(String alias) {
69 Certificate[] chain) throws KeyStoreException {
74 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)
80 public void engineSetCertificateEntry(String alias, Certificate cert)
124 public String engineGetCertificateAlias(Certificate cert) {
146 class MyCertificate extends Certificate {
TestKeyStoreSpi.java 17 import java.security.cert.Certificate;
31 public static final Certificate CERT = new MyCertificate("certtype",
33 public static final Certificate[] CERTCHAIN = new Certificate[] {
78 public Certificate engineGetCertificate(String alias) {
79 return (Certificate) aliases.get(alias);
83 public String engineGetCertificateAlias(Certificate cert) {
98 public Certificate[] engineGetCertificateChain(String alias) {
99 return (Certificate[]) aliases.get(alias);
128 Certificate c = (Certificate) aliases.get(alias)
    [all...]
  /bootable/recovery/
verifier.h 39 struct Certificate {
45 Certificate(int hash_len_,
67 const std::vector<Certificate>& keys);
69 bool load_keys(const char* filename, std::vector<Certificate>& certs);
  /libcore/ojluni/src/main/java/java/security/
Certificate.java 34 * An identity certificate is a guarantee by a principal that
42 * share general certificate functionality (the need to encode and
47 * implementation of PGP certificates can both utilize the Certificate
53 * semantics of its own. In particular, a Certificate object does not
56 * the certificate and satisfy itself of its validity.
59 * @deprecated A new certificate handling package is created in the Java platform.
60 * This Certificate interface is entirely deprecated and
63 * @see java.security.cert.Certificate
66 public interface Certificate {
69 * Returns the guarantor of the certificate, that is, the principa
    [all...]
Identity.java 99 Vector<Certificate> certificates;
189 certificates = new Vector<Certificate>();
225 * Adds a certificate for this identity. If the identity has a public
226 * key, the public key in the certificate must be the same, and if
228 * public key is set to be that specified in the certificate.
232 * as its argument to see if it's ok to add a certificate.
234 * @param certificate the certificate to be added.
236 * @exception KeyManagementException if the certificate is not valid,
237 * if the public key in the certificate being added conflicts wit
    [all...]
  /external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
PoloUtil.java 22 import java.security.cert.Certificate;
33 * Returns the peer {@link Certificate} for an {@link SSLSession}.
35 * @throws PoloException if the peer certificate could not be obtained
37 * @return the {@link Certificate} of the peer
39 public static Certificate getPeerCert(SSLSession session)
42 // Peer certificate
43 Certificate[] certs = session.getPeerCertificates();
45 throw new PoloException("No peer certificate.");
54 * Return the local {@link Certificate} for an {@link SSLSession}.
56 * @throws PoloException if the local certificate could not be obtaine
    [all...]
  /frameworks/base/core/java/android/security/net/config/
TrustedCertificateStoreAdapter.java 20 import java.security.cert.Certificate;
41 return anchor.certificate;
55 return anchor.certificate;
78 public Certificate getCertificate(String alias) {
83 public Certificate getCertificate(String alias, boolean includeDeletedSystem) {
113 public String getCertificateAlias(Certificate c) {
118 public String getCertificateAlias(Certificate c, boolean includeDeletedSystem) {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/
PKIXCertStoreSelector.java 7 import java.security.cert.Certificate;
18 public class PKIXCertStoreSelector<T extends Certificate>
43 public PKIXCertStoreSelector<? extends Certificate> build()
56 public boolean match(Certificate cert)
66 public static Collection<? extends Certificate> getCertificates(final PKIXCertStoreSelector selector, CertStore certStore)
114 public boolean match(Certificate certificate)
116 return (selector == null) ? (certificate != null) : selector.match(certificate);
  /libcore/luni/src/test/java/tests/targets/security/cert/
CertPathBuilderTestPKIX.java 24 import java.security.cert.Certificate;
54 List<Certificate> certList = new ArrayList<Certificate>();
55 for (Certificate certificate : pke.getCertificateChain()) {
56 certList.add(certificate);
70 List<? extends Certificate> certificates = path.getCertificates();
76 Certificate endEntityCert = certificates.get(0);
77 assertEquals("Certificate must be of X.509 type", "X.509", endEntityCert.getType());

Completed in 580 milliseconds

12 3 4 5 6 7 8 91011>>