HomeSort by relevance Sort by last modified time
    Searched refs:certificates (Results 1 - 25 of 56) sorted by null

1 2 3

  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
CollectionCertStoreParametersTest.java 87 Vector certificates = new Vector(); local
88 certificates.add(new MyCertificate("TEST", new byte[] {}));
89 new CollectionCertStoreParameters(certificates);
103 Vector certificates = new Vector(); local
104 certificates.add(new String("Not a Certificate"));
105 new CollectionCertStoreParameters(certificates);
112 * This allows the caller to subsequently add or remove Certificates or
113 * CRLs from the Collection, thus changing the set of Certificates or CRLs
118 Vector certificates = new Vector(); local
121 new CollectionCertStoreParameters(certificates);
152 Vector certificates = new Vector(); local
168 Vector certificates = new Vector(); local
211 Vector certificates = new Vector(); local
233 Vector certificates = new Vector(); local
    [all...]
  /libcore/luni/src/test/java/tests/security/cert/
CollectionCertStoreParametersTest.java 76 Vector<Certificate> certificates = new Vector<Certificate>(); local
77 certificates.add(new MyCertificate("TEST", new byte[] {}));
78 new CollectionCertStoreParameters(certificates);
89 Vector<String> certificates = new Vector<String>(); local
90 certificates.add(new String("Not a Certificate"));
91 new CollectionCertStoreParameters(certificates);
99 Vector<Certificate> certificates = new Vector<Certificate>(); local
102 new CollectionCertStoreParameters(certificates);
104 assertTrue("isRefUsed_1", certificates == cp.getCollection());
108 certificates.add(new MyCertificate("TEST", new byte[] {(byte)1}))
130 Vector<Certificate> certificates = new Vector<Certificate>(); local
144 Vector<Certificate> certificates = new Vector<Certificate>(); local
183 Vector<Certificate> certificates = new Vector<Certificate>(); local
203 Vector certificates = new Vector(); local
    [all...]
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/cert/
MyCertPath.java 38 * my certificates list
40 private final Vector certificates; field in class:MyCertPath
59 certificates = new Vector();
60 certificates.add(new MyCertificate("MyEncoding", encoding));
66 * @return certificates list
70 return Collections.unmodifiableList(certificates);
MyCertificateFactorySpi.java 121 public CertPath engineGenerateCertPath(List certificates)
123 if (certificates == null) {
125 throw new NullPointerException("certificates is null");
  /libcore/luni/src/main/java/java/security/
Identity.java 44 private Vector<Certificate> certificates; field in class:Identity
100 if (certificates == null) {
101 certificates = new Vector<Certificate>();
103 certificates.add(certificate);
139 if (certificates != null) {
140 if (!certificates.contains(certificate)) {
143 certificates.removeElement(certificate);
151 * Returns the certificates for this {@code Identity}. External
155 * @return the {@code Certificates} for this {@code Identity}
157 public Certificate[] certificates() { method in class:Identity
    [all...]
  /external/webkit/Source/WebCore/platform/network/
Credential.cpp 60 , m_certificates(original.certificates())
97 Credential::Credential(SecIdentityRef identity, CFArrayRef certificates, CredentialPersistence persistence)
102 , m_certificates(certificates)
112 CFArrayRef Credential::certificates() const function in class:WebCore::Credential
138 // FIXME: Is pointer comparison of the identity and certificates properties sufficient?
142 if (a.certificates() != b.certificates())
145 // We only need to check identity and certificates to compare
Credential.h 59 Credential(SecIdentityRef identity, CFArrayRef certificates, CredentialPersistence);
71 CFArrayRef certificates() const;
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
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);
MyCertificateFactorySpi.java 124 public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) {
125 if (certificates == null) {
127 throw new NullPointerException("certificates is null");
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
PKIXCertPath.java 41 * CertPath implementation for X.509 certificates.
58 private List certificates; field in class:PKIXCertPath
144 // make sure all certificates are accounted for.
153 PKIXCertPath(List certificates)
156 this.certificates = sortCerts(new ArrayList(certificates));
181 certificates = new ArrayList();
187 certificates.add(0, certFactory.generateCertificate(
194 certificates = new ArrayList();
199 certificates.add(cert)
    [all...]
  /external/chromium/net/base/
cert_database_nss.cc 177 const CertificateList& certificates) const {
178 DCHECK_GT(certificates.size(), 0U);
180 if (certificates.size() == 1)
181 return certificates[0].get();
183 X509Certificate* cert0 = certificates[0];
184 X509Certificate* cert1 = certificates[1];
185 X509Certificate* certn_2 = certificates[certificates.size() - 2];
186 X509Certificate* certn_1 = certificates[certificates.size() - 1]
    [all...]
cert_database.h 98 // Get a list of unique certificates in the certificate database. (One
99 // instance of all certificates.)
114 // Import certificates and private keys from PKCS #12 blob into the module.
121 // Export the given certificates and private keys into a PKCS #12 blob,
123 // Returns the number of certificates successfully exported.
131 X509Certificate* FindRootInList(const CertificateList& certificates) const;
133 // Import CA certificates.
134 // Tries to import all the certificates given. The root will be trusted
135 // according to |trust_bits|. Any certificates that could not be imported
138 // |not_imported| should be checked for any certificates that were no
    [all...]
  /cts/tests/tests/security/src/android/security/cts/
CertificateTest.java 42 assertTrue("Missing certificates: " + expectedCertificates, expectedCertificates.isEmpty());
51 assertTrue("Blocked certificates: " + deviceCertificates, deviceCertificates.isEmpty());
55 Set<String> certificates = new HashSet<String>(); local
57 certificates.add(CertificateData.CERTIFICATE_DATA[i]);
59 return certificates;
70 Set<String> certificates = new HashSet<String>(); local
78 certificates.add(fingerprint);
80 return certificates;
  /external/bouncycastle/src/main/java/org/bouncycastle/asn1/pkcs/
SignedData.java 24 private ASN1Set certificates; field in class:SignedData
54 certificates = _certificates;
83 certificates = ASN1Set.getInstance(tagged, false);
116 return certificates;
136 * certificates
152 if (certificates != null)
154 v.add(new DERTaggedObject(false, 0, certificates));
  /libcore/luni/src/main/java/org/apache/harmony/security/pkcs7/
SignedData.java 44 * certificates
54 private final List<Certificate> certificates; field in class:SignedData
59 List<Certificate> certificates, List<CertificateList> crls,
64 this.certificates = certificates;
70 return certificates;
95 if (certificates != null) {
96 res.append(certificates.toString());
117 setOptional(3); // certificates is optional
126 values[3] = sd.certificates;
    [all...]
  /libcore/luni/src/main/java/java/util/jar/
JarVerifier.java 64 private final Hashtable<String, Certificate[]> certificates = new Hashtable<String, Certificate[]>( field in class:JarVerifier
83 private Certificate[] certificates; field in class:JarVerifier.VerifierEntry
86 Certificate[] certificates) {
90 this.certificates = certificates;
125 verifiedEntries.put(name, certificates);
152 * which contains the certificates used to sign the entry and its hash value
183 certs.addAll(getSignerCertificates(signatureFile, certificates));
300 certificates.put(signatureFile, signerCertChain);
376 return certificates.size() > 0
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/
X509CertPathImpl.java 54 * &nbsp; 1. It can be created over the list of X.509 certificates
67 * certificates presented in <code>certificates</code> field of the SignedData
88 // the list of certificates representing this certification path
89 private final List certificates; field in class:X509CertPathImpl
97 * list of certificates.
104 certificates = new ArrayList(size);
109 "One of the provided certificates is not an X509 certificate");
111 certificates.add(cert);
118 * list of certificates and their encoded form of specified type
    [all...]
  /libcore/luni/src/main/java/java/security/cert/
CertificateFactorySpi.java 54 * Generates and initializes a collection of certificates from the provided
58 * the stream from where data is read to create the certificates.
59 * @return a collection of certificates.
128 * Generates a {@code CertPath} from the provided list of certificates. The
131 * @param certificates
132 * the list containing certificates in a format supported by the
140 public CertPath engineGenerateCertPath(List<? extends Certificate> certificates)
CertificateFactory.java 104 * the name of the provider providing certificates of the
136 * the name of the provider providing certificates of the
248 * Generates a {@code CertPath} from the provided list of certificates. The
251 * @param certificates
252 * the list containing certificates in a format supported by the
260 public final CertPath generateCertPath(List<? extends Certificate> certificates)
262 return spiImpl.engineGenerateCertPath(certificates);
266 * Generates and initializes a collection of (unrelated) certificates from
272 * @return an initialized collection of certificates.
  /packages/apps/Settings/src/com/android/settings/vpn2/
VpnDialog.java 306 String[] certificates = mKeyStore.saw(prefix); local
308 if (certificates == null || certificates.length == 0) {
309 certificates = new String[] {first};
311 String[] array = new String[certificates.length + 1];
313 System.arraycopy(certificates, 0, array, 1, certificates.length);
314 certificates = array;
318 context, android.R.layout.simple_spinner_item, certificates);
322 for (int i = 1; i < certificates.length; ++i)
    [all...]
  /libcore/luni/src/test/java/tests/targets/security/cert/
CertPathBuilderTestPKIX.java 77 List<? extends Certificate> certificates = path.getCertificates(); local
78 Certificate certificate = certificates.get(0);
  /external/apache-harmony/security/src/test/api/java.injected/java/security/
IdentityTest.java 122 assertSame(c1, i.certificates()[0]);
139 assertSame(c1, i.certificates()[0]);
165 // assertSame(c1, i.certificates()[0]);
167 // assertEquals(0, i.certificates().length);
183 * verify certificates() returns a copy of all certificates for this identity
192 Certificate[] s = i.certificates();
199 s = i.certificates();
288 * verify Identity.setPublicKey() removes old key and all identity's certificates
298 assertEquals(2, i.certificates().length)
    [all...]
  /libcore/luni/src/test/java/tests/java/security/
IdentityTest.java 128 assertSame(c1, i.certificates()[0]);
145 assertSame(c1, i.certificates()[0]);
171 // assertSame(c1, i.certificates()[0]);
173 // assertEquals(0, i.certificates().length);
189 * verify certificates() returns a copy of all certificates for this identity
198 java.security.Certificate[] s = i.certificates();
205 s = i.certificates();
292 * verify Identity.setPublicKey() removes old key and all identity's certificates
302 assertEquals(2, i.certificates().length)
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
NativeCrypto.java 400 public static byte[][] encodeCertificates(Certificate[] certificates)
402 byte[][] certificateBytes = new byte[certificates.length][];
403 for (int i = 0; i < certificates.length; i++) {
404 certificateBytes[i] = certificates[i].getEncoded();
417 public static byte[][] encodeIssuerX509Principals(X509Certificate[] certificates)
419 byte[][] principalBytes = new byte[certificates.length][];
420 for (int i = 0; i < certificates.length; i++) {
421 principalBytes[i] = certificates[i].getIssuerX500Principal().getEncoded();
667 * Returns the local ASN.1 DER encoded X509 certificates.
672 * Returns the peer ASN.1 DER encoded X509 certificates
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
CertificateFactory_ImplTest.java 53 * Certificates and CRLs.
102 * Base64 encoded PkiPath object containing 2 X.509 certificates.
208 * The public key to verify generated Certificates and CRLs.
458 * Generates Certificates on the base of consequent
482 {-2, pem_pkcs, pem_x509}, // 2 Certificates are expected
556 * Generates CRLs/Certificates on the base of PEM PKCS7 encoding.
627 List certificates; local
632 certificates = factory.generateCertPath(bais).getCertificates();
634 2, certificates.size());
638 for (Iterator it = certificates.iterator(); it.hasNext();)
    [all...]

Completed in 256 milliseconds

1 2 3