Home
last modified time | relevance | path

Searched refs:Certificate (Results 1 – 25 of 191) sorted by relevance

12345678

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
DCertificateTest.java28 import java.security.cert.Certificate;
66 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding); in testHashCode()
67 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding); in testHashCode()
77 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding); in testHashCodeEqualsObject()
78 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding); in testHashCodeEqualsObject()
89 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding); in testGetType()
98 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding); in testEqualsObject01()
108 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding); in testEqualsObject02()
109 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding); in testEqualsObject02()
118 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding); in testEqualsObject03()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DHandshake.java21 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) { in Handshake()
51 Certificate[] peerCertificates; in get()
57 List<Certificate> peerCertificatesList = peerCertificates != null in get()
59 : Collections.<Certificate>emptyList(); in get()
61 Certificate[] localCertificates = session.getLocalCertificates(); in get()
62 List<Certificate> localCertificatesList = localCertificates != null in get()
64 : Collections.<Certificate>emptyList(); in get()
[all …]
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
DPairingContext.java24 import java.security.cert.Certificate;
36 private Certificate mLocalCertificate;
41 private Certificate mPeerCertificate;
67 public PairingContext(Certificate localCertificate, in PairingContext()
68 Certificate peerCertificate, InputStream peerInputStream, in PairingContext()
88 Certificate localCert = PoloUtil.getLocalCert(socket.getSession()); in fromSslSocket()
89 Certificate peerCert = PoloUtil.getPeerCert(socket.getSession()); in fromSslSocket()
95 public void setLocalCertificate(Certificate localCertificate) { in setLocalCertificate()
99 public Certificate getClientCertificate() { in getClientCertificate()
107 public void setPeerCertificate(Certificate peerCertificate) { in setPeerCertificate()
[all …]
DPoloUtil.java22 import java.security.cert.Certificate;
39 public static Certificate getPeerCert(SSLSession session) in getPeerCert()
43 Certificate[] certs = session.getPeerCertificates(); in getPeerCert()
60 public static Certificate getLocalCert(SSLSession session) in getLocalCert()
62 Certificate[] certs = session.getLocalCertificates(); in getLocalCert()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DKeyStore3Test.java38 import java.security.cert.Certificate;
52 private Certificate certificate;
113 mockKeyStore.setKeyEntry("Alias", null, null, new Certificate[] { certificate }); in test_setKeyEntry_key_is_null()
128 new Certificate[0]); in test_setKeyEntry_key_is_private()
134 mockKeyStore.setKeyEntry("Alias", key, null, new Certificate[] { certificate }); in test_setKeyEntry_key_is_private()
142 new Certificate[0]); in test_setKeyEntry_key_is_public()
143 mockKeyStore.setKeyEntry("Alias3", key, null, new Certificate[] { certificate }); in test_setKeyEntry_key_is_public()
212 public Certificate engineGetCertificate(String arg0) { in engineGetCertificate()
216 public String engineGetCertificateAlias(Certificate arg0) { in engineGetCertificateAlias()
220 public Certificate[] engineGetCertificateChain(String arg0) { in engineGetCertificateChain()
[all …]
DKSPrivateKeyEntryTest.java25 import java.security.cert.Certificate;
50 private Certificate[] testChain;
54 testChain = new Certificate[5]; in createParams()
70 Certificate[] certs = new MyCertificate[1];//new Certificate[1]; in testPrivateKeyEntry01()
86 Certificate[] chain = null; in testPrivateKeyEntry02()
94 chain = new Certificate[0]; in testPrivateKeyEntry02()
151 Certificate[] res = ksPKE.getCertificateChain(); in testGetCertificateChain()
167 Certificate res = ksPKE.getCertificate(); in testGetCertificate()
DKSTrustedCertificateEntryTest.java25 import java.security.cert.Certificate;
43 Certificate cert = null; in testTrustedCertificateEntry()
56 Certificate cert = new MyCertificate("TEST", new byte[10]); in testGetTrustedCertificate()
67 Certificate cert = new MyCertificate("TEST", new byte[10]); in testToString()
DKeyStorePrivateKeyEntryTest.java26 import java.security.cert.Certificate;
62 Certificate certificate = cf.generateCertificate(certArray); in testGetCertificateChain()
74 privateKey, new Certificate[] { certificate }); in testGetCertificateChain()
75 Certificate[] chain = privateKeyEntry.getCertificateChain(); in testGetCertificateChain()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DCertificate.java21 public class Certificate class
29 public static Certificate getInstance( in getInstance()
36 public static Certificate getInstance( in getInstance()
39 if (obj instanceof Certificate) in getInstance()
41 return (Certificate)obj; in getInstance()
45 return new Certificate(ASN1Sequence.getInstance(obj)); in getInstance()
51 private Certificate( in Certificate() method in Certificate
/external/apache-http/android/src/android/net/http/
DDelegatingSSLSession.java20 import java.security.cert.Certificate;
38 private final Certificate mCertificate;
40 public CertificateWrap(Certificate certificate) { in CertificateWrap()
45 public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException { in getPeerCertificates()
46 return new Certificate[] { mCertificate }; in getPeerCertificates()
77 public Certificate[] getLocalCertificates() { in getLocalCertificates()
98 public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException { in getPeerCertificates()
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_DummyPKCS12Keystore.java28 import java.security.cert.Certificate;
49 public Certificate[] engineGetCertificateChain(String arg0) { in engineGetCertificateChain()
54 public Certificate engineGetCertificate(String arg0) { in engineGetCertificate()
65 Certificate[] arg3) throws KeyStoreException { in engineSetKeyEntry()
69 public void engineSetKeyEntry(String arg0, byte[] arg1, Certificate[] arg2) in engineSetKeyEntry()
74 public void engineSetCertificateEntry(String arg0, Certificate arg1) in engineSetCertificateEntry()
108 public String engineGetCertificateAlias(Certificate arg0) { in engineGetCertificateAlias()
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
DMyKeyStoreSpi.java33 import java.security.cert.Certificate;
49 public Certificate[] engineGetCertificateChain(String alias) { in engineGetCertificateChain()
53 public Certificate engineGetCertificate(String alias) { in engineGetCertificate()
62 Certificate[] chain) throws KeyStoreException { in engineSetKeyEntry()
67 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) in engineSetKeyEntry()
73 public void engineSetCertificateEntry(String alias, Certificate cert) in engineSetCertificateEntry()
104 public String engineGetCertificateAlias(Certificate cert) { in engineGetCertificateAlias()
DMyKeyStore.java34 import java.security.cert.Certificate;
69 public Certificate[] engineGetCertificateChain(String alias) { in engineGetCertificateChain()
71 return (Certificate[]) Chain.get(alias); in engineGetCertificateChain()
76 public Certificate engineGetCertificate(String alias) { in engineGetCertificate()
78 return (Certificate) Cert.get(alias); in engineGetCertificate()
91 Certificate[] chain) throws KeyStoreException { in engineSetKeyEntry()
102 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) in engineSetKeyEntry()
123 public void engineSetCertificateEntry(String alias, Certificate cert) in engineSetCertificateEntry()
172 public String engineGetCertificateAlias(Certificate cert) { in engineGetCertificateAlias()
DTestCertUtils.java62 public static Certificate getCert() { in getCert()
74 public static Certificate[] getCertChain() { in getCertChain()
75 Certificate[] chain = { new TestCertificate(), new TestCertificate(), in getCertChain()
103 Certificate[] certs = new Certificate[howMany]; in genCertPath()
153 private Certificate[] certs;
174 public TestCertPath(Certificate[] certs) { in TestCertPath()
254 certs = new Certificate[count]; in readObject()
256 certs[i] = (Certificate) in.readObject(); in readObject()
298 public static class TestCertificate extends Certificate implements
606 public Certificate engineGenerateCertificate(InputStream is) in engineGenerateCertificate()
[all …]
/external/conscrypt/src/platform/java/org/conscrypt/
DTrustedCertificateKeyStoreSpi.java23 import java.security.cert.Certificate;
44 public Certificate[] engineGetCertificateChain(String alias) { in engineGetCertificateChain()
52 public Certificate engineGetCertificate(String alias) { in engineGetCertificate()
63 String alias, Key key, char[] password, Certificate[] chain) { in engineSetKeyEntry()
68 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) { in engineSetKeyEntry()
73 public void engineSetCertificateEntry(String alias, Certificate cert) { in engineSetCertificateEntry()
114 public String engineGetCertificateAlias(Certificate c) { in engineGetCertificateAlias()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/
DBcKeyStoreSpi.java22 import java.security.cert.Certificate;
107 Certificate[] certChain;
112 Certificate obj) in StoreEntry()
123 Certificate[] certChain) in StoreEntry()
135 Certificate[] certChain) in StoreEntry()
186 Certificate[] certChain) in StoreEntry()
329 Certificate[] getCertificateChain() in getCertificateChain()
341 Certificate cert, in encodeCertificate()
359 private Certificate decodeCertificate( in decodeCertificate()
517 public Certificate engineGetCertificate( in engineGetCertificate()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/
DPKIXCertStoreSelector.java7 import java.security.cert.Certificate;
18 public class PKIXCertStoreSelector<T extends Certificate>
43 public PKIXCertStoreSelector<? extends Certificate> build() in build()
56 public boolean match(Certificate cert) in match()
66 …public static Collection<? extends Certificate> getCertificates(final PKIXCertStoreSelector select… in getCertificates()
114 public boolean match(Certificate certificate) in match()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
DFakeSSLSession.java20 import java.security.cert.Certificate;
27 private final Certificate[] certificates;
29 public FakeSSLSession(Certificate... certificates) throws Exception { in FakeSSLSession()
53 public Certificate[] getLocalCertificates() { in getLocalCertificates()
65 public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException { in getPeerCertificates()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/serialization/
DCertificateTest.java26 import java.security.cert.Certificate;
50 Certificate cert = cf.generateCertificate(new ByteArrayInputStream( in testSerializationSelf()
63 Certificate cert = cf.generateCertificate(new ByteArrayInputStream( in testSerializationCompatibility()
77 Certificate c1 = new MyCertificate("DUMMY", new byte[] { (byte) 0, (byte) 1 }); in testCertificateRep_readResolve()
93 Certificate c1 = new MyCertificate("DUMMY", null); in testWriteReplace()
/external/boringssl/src/ssl/test/runner/
Dkey_agreement.go37 func (ka *rsaKeyAgreement) generateServerKeyExchange(config *Config, cert *Certificate, clientHello…
101 func (ka *rsaKeyAgreement) processClientKeyExchange(config *Config, cert *Certificate, ckx *clientK…
139 …, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, skx *serverKey…
143 …entKeyExchange(config *Config, clientHello *clientHelloMsg, cert *x509.Certificate) ([]byte, *clie…
346 …signParameters(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloM… argument
347 …, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, params []byte,… argument
354 func (ka *nilKeyAgreementAuthentication) signParameters(config *Config, cert *Certificate, clientHe…
360 …, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, params []byte,…
389 func (ka *signedKeyAgreement) signParameters(config *Config, cert *Certificate, clientHello *client…
459 …, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, params []byte,…
[all …]
Dcommon.go189 PeerCertificates []*x509.Certificate // certificate chain presented by remote peer
190 VerifiedChains [][]*x509.Certificate // verified chains built from PeerCertificates
219 serverCertificates []*x509.Certificate // Certificate chain presented by the server
269 Certificates []Certificate
277 NameToCertificate map[string]*Certificate
901 func (c *Config) getCertificateForName(name string) *Certificate {
949 c.NameToCertificate = make(map[string]*Certificate)
952 x509Cert, err := x509.ParseCertificate(cert.Certificate[0])
966 type Certificate struct { struct
967 Certificate [][]byte member
[all …]
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DRecordedRequest.java22 import java.security.cert.Certificate;
46 private final Certificate[] sslLocalCertificates;
47 private final Certificate[] sslPeerCertificates;
66 Certificate[] peerCertificates = null; in RecordedRequest()
216 public Certificate[] getSslLocalCertificates() { in getSslLocalCertificates()
234 public Certificate[] getSslPeerCertificates() { in getSslPeerCertificates()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
DCertificateFactory.java25 import org.bouncycastle.asn1.x509.Certificate;
53 private java.security.cert.Certificate readDERCertificate( in readDERCertificate()
72 Certificate.getInstance(seq)); in readDERCertificate()
75 private java.security.cert.Certificate getCertificate() in getCertificate()
87 Certificate.getInstance(obj)); in getCertificate()
95 private java.security.cert.Certificate readPEMCertificate( in readPEMCertificate()
104 Certificate.getInstance(seq)); in readPEMCertificate()
170 public java.security.cert.Certificate engineGenerateCertificate( in engineGenerateCertificate()
236 java.security.cert.Certificate cert; in engineGenerateCertificates()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/
DX509CertificateHolder.java15 import org.bouncycastle.asn1.x509.Certificate;
30 private Certificate x509Certificate;
33 private static Certificate parseBytes(byte[] certEncoding) in parseBytes()
38 return Certificate.getInstance(ASN1Primitive.fromByteArray(certEncoding)); in parseBytes()
67 public X509CertificateHolder(Certificate x509Certificate) in X509CertificateHolder()
221 public Certificate toASN1Structure() in toASN1Structure()
/external/nist-sip/java/gov/nist/javax/sip/
DTransactionExt.java4 import java.security.cert.Certificate;
61 Certificate[] getLocalCertificates() throws UnsupportedOperationException; in getLocalCertificates()
68 Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException; in getPeerCertificates()

12345678