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

1 2 3 4 5

  /bootable/recovery/
verifier.h 38 } Certificate;
46 const Certificate *pKeys, unsigned int numKeys);
48 Certificate* load_keys(const char* filename, int* numKeys);
verifier_test.cpp 155 static Certificate* add_certificate(Certificate** certsp, int* num_keys,
156 Certificate::KeyType key_type) {
159 *certsp = (Certificate*) realloc(*certsp, *num_keys * sizeof(Certificate));
160 Certificate* certs = *certsp;
173 Certificate* certs = NULL;
184 Certificate* cert = &certs[num_keys - 1];
188 Certificate* cert = add_certificate(&certs, &num_keys, Certificate::EC)
    [all...]
verifier.cpp 115 const Certificate* pKeys, unsigned int numKeys) {
252 if (pKeys[i].key_type == Certificate::RSA) {
268 } else if (pKeys[i].key_type == Certificate::EC
315 // A Certificate is a pair of an RSAPublicKey and a particular hash
326 Certificate*
328 Certificate* out = NULL;
342 out = (Certificate*)realloc(out, *numKeys * sizeof(Certificate));
343 Certificate* cert = out + (*numKeys - 1);
344 memset(cert, '\0', sizeof(Certificate));
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/
TransactionExt.java 4 import java.security.cert.Certificate;
56 * Get the certificate(s) that were sent to the peer during handshaking.
57 *@return the certificate(s) that were sent to the peer during handshaking.
61 Certificate[] getLocalCertificates() throws UnsupportedOperationException;
68 Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException;
ClientTransactionExt.java 3 import java.security.cert.Certificate;
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
CertificateTest.java 28 import java.security.cert.Certificate;
37 * Tests for <code>Certificate</code> fields and methods
63 * Assertion: returns hash of the <code>Certificate</code> instance
66 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding);
67 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding);
77 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding);
78 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding);
86 * Assertion: returns this certificate type
89 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding);
98 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding)
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Handshake.java 21 import java.security.cert.Certificate;
37 private final List<Certificate> peerCertificates;
38 private final List<Certificate> localCertificates;
41 String cipherSuite, List<Certificate> peerCertificates, List<Certificate> localCertificates) {
51 Certificate[] peerCertificates;
57 List<Certificate> peerCertificatesList = peerCertificates != null
59 : Collections.<Certificate>emptyList();
61 Certificate[] localCertificates = session.getLocalCertificates();
62 List<Certificate> localCertificatesList = localCertificates != nul
    [all...]
  /external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
PairingContext.java 24 import java.security.cert.Certificate;
34 * The {@link Certificate} of the local endpoint of the protocol.
36 private Certificate mLocalCertificate;
39 * The {@link Certificate} of the remote endpoint of the protocol.
41 private Certificate mPeerCertificate;
61 * @param localCertificate the local endpoint's {@link Certificate}
62 * @param peerCertificate the remote endpoint's {@link Certificate}
67 public PairingContext(Certificate localCertificate,
68 Certificate peerCertificate, InputStream peerInputStream,
88 Certificate localCert = PoloUtil.getLocalCert(socket.getSession())
    [all...]
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...]
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/cert/
MyCRL.java 25 import java.security.cert.Certificate;
50 * @param cert <code>Certificate</code> to be checked
52 * @see java.security.cert.CRL#isRevoked(java.security.cert.Certificate)
54 public boolean isRevoked(Certificate cert) {
MyCertificate.java 29 import java.security.cert.Certificate;
34 * Stub class for <code>java.security.cert.Certificate</code> tests
36 public class MyCertificate extends Certificate {
82 return "[My test Certificate, type: " + getType() + "]";
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/jcajce/
JcaX509CertificateHolder.java 6 import org.bouncycastle.asn1.x509.Certificate;
18 * @param cert certificate to be used a the source for the holder creation.
19 * @throws CertificateEncodingException if there is a problem extracting the certificate information.
24 super(Certificate.getInstance(cert.getEncoded()));
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
KSTrustedCertificateEntryTest.java 25 import java.security.cert.Certificate;
38 * Test for <codfe>KeyStore.TrustedCertificateEntry(Certificate trustCert)</code>
43 Certificate cert = null;
53 * Assertion: returns trusted Certificate from goven entry
56 Certificate cert = new MyCertificate("TEST", new byte[10]);
59 assertEquals("Incorrect certificate", cert, ksTCE.getTrustedCertificate());
67 Certificate cert = new MyCertificate("TEST", new byte[10]);
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...]
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
MyKeyStoreSpi.java 33 import java.security.cert.Certificate;
49 public Certificate[] engineGetCertificateChain(String alias) {
53 public Certificate engineGetCertificate(String alias) {
62 Certificate[] chain) throws KeyStoreException {
67 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)
73 public void engineSetCertificateEntry(String alias, Certificate cert)
104 public String engineGetCertificateAlias(Certificate cert) {
CertificateStub.java 27 import java.security.Certificate;
33 * Stub for interface Certificate, necessary for testing
36 public class CertificateStub implements Certificate {
53 * @see java.security.Certificate#decode(java.io.InputStream)
64 * @see java.security.Certificate#encode(java.io.OutputStream)
73 * @see java.security.Certificate#getFormat()
81 * @see java.security.Certificate#getGuarantor()
89 * @see java.security.Certificate#getPrincipal()
96 * @see java.security.Certificate#getPublicKey()
105 * @see java.security.Certificate#toString(boolean
    [all...]
  /external/apache-harmony/support/src/test/java/tests/support/
Support_DummyPKCS12Keystore.java 28 import java.security.cert.Certificate;
49 public Certificate[] engineGetCertificateChain(String arg0) {
54 public Certificate engineGetCertificate(String arg0) {
65 Certificate[] arg3) throws KeyStoreException {
69 public void engineSetKeyEntry(String arg0, byte[] arg1, Certificate[] arg2)
74 public void engineSetCertificateEntry(String arg0, Certificate arg1)
108 public String engineGetCertificateAlias(Certificate arg0) {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
Certificate.java 14 * Certificate ::= SEQUENCE {
21 public class Certificate
29 public static Certificate getInstance(
36 public static Certificate getInstance(
39 if (obj instanceof Certificate)
41 return (Certificate)obj;
45 return new Certificate(ASN1Sequence.getInstance(obj));
51 private Certificate(
68 throw new IllegalArgumentException("sequence wrong size for a certificate");
  /external/conscrypt/src/platform/java/org/conscrypt/
TrustedCertificateKeyStoreSpi.java 23 import java.security.cert.Certificate;
44 public Certificate[] engineGetCertificateChain(String alias) {
52 public Certificate engineGetCertificate(String alias) {
63 String alias, Key key, char[] password, Certificate[] chain) {
68 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) {
73 public void engineSetCertificateEntry(String alias, Certificate cert) {
114 public String engineGetCertificateAlias(Certificate c) {
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/serialization/
CertificateTest.java 26 import java.security.cert.Certificate;
36 * Tests for <code>Certificate</code> serialization
40 // certificate type to be created during testing
50 Certificate cert = cf.generateCertificate(new ByteArrayInputStream(
63 Certificate cert = cf.generateCertificate(new ByteArrayInputStream(
70 * Test for <code>Certificate.CertificateRep.readResolve()</code> method<br>
77 Certificate c1 = new MyCertificate("DUMMY", new byte[] { (byte) 0, (byte) 1 });
93 Certificate c1 = new MyCertificate("DUMMY", null);
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
FakeSSLSession.java 20 import java.security.cert.Certificate;
27 private final Certificate[] certificates;
29 public FakeSSLSession(Certificate... certificates) throws Exception {
53 public Certificate[] getLocalCertificates() {
65 public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException {
  /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()
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
CertStoreCollectionSpi.java 10 import java.security.cert.Certificate;
47 if (obj instanceof Certificate)
59 if ((obj instanceof Certificate) && selector.match((Certificate)obj))

Completed in 1631 milliseconds

1 2 3 4 5