/external/conscrypt/src/test/java/org/conscrypt/ |
ClientSessionContextTest.java | 22 import javax.net.ssl.SSLSession; 30 SSLSession a = new ValidSSLSession("a"); 31 SSLSession b = new ValidSSLSession("b"); 34 assertSessionContextContents(context, new SSLSession[] { a }, new SSLSession[] { b }); 37 assertSessionContextContents(context, new SSLSession[] { a, b }, new SSLSession[0]); 48 assertSessionContextContents(context, new SSLSession[] { a }, new SSLSession[] { b, c, d }); 51 assertSessionContextContents(context, new SSLSession[] { a, b }, new SSLSession[] { c, d }) [all...] |
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
SSLSessionBindingEventTest.java | 24 import javax.net.ssl.SSLSession; 38 SSLSession ses = new MySSLSession(); 47 class MySSLSession implements SSLSession { 49 * @see javax.net.ssl.SSLSession#getApplicationBufferSize() 56 * @see javax.net.ssl.SSLSession#getCipherSuite() 63 * @see javax.net.ssl.SSLSession#getCreationTime() 70 * @see javax.net.ssl.SSLSession#getId() 77 * @see javax.net.ssl.SSLSession#getLastAccessedTime() 84 * @see javax.net.ssl.SSLSession#getLocalCertificates() 91 * @see javax.net.ssl.SSLSession#getLocalPrincipal( [all...] |
HandshakeCompletedEventTest.java | 26 import javax.net.ssl.SSLSession; 87 SSLSession ses = new MySSLSession(); 98 SSLSession ses = new MySSLSession(); 120 SSLSession ses = new MySSLSession(); 133 SSLSession ses = new MySSLSession(); 146 SSLSession ses = new MySSLSession();
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
TestSSLSessions.java | 19 import javax.net.ssl.SSLSession; 26 * client/server pair of SSLSession as well as an invalid SSLSession. 33 public final SSLSession invalid; 38 public final SSLSession server; 43 public final SSLSession client; 51 private TestSSLSessions(SSLSession invalid, 52 SSLSession server, 53 SSLSession client, 69 SSLSession invalid = ssl.getSession() [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
SSLSessionBindingEventTest.java | 24 import javax.net.ssl.SSLSession; 38 SSLSession ses = new MySSLSession(); 70 SSLSession ses = new MySSLSession(); 81 SSLSession ses = new MySSLSession(); 87 class MySSLSession implements SSLSession { 89 * @see javax.net.ssl.SSLSession#getApplicationBufferSize() 96 * @see javax.net.ssl.SSLSession#getCipherSuite() 103 * @see javax.net.ssl.SSLSession#getCreationTime() 110 * @see javax.net.ssl.SSLSession#getId() 117 * @see javax.net.ssl.SSLSession#getLastAccessedTime( [all...] |
SSLSessionTest.java | 35 import javax.net.ssl.SSLSession; 54 * javax.net.ssl.SSLSession#getPeerHost() 55 * javax.net.ssl.SSLSession#getPeerPort() 58 SSLSession s = clientSession; 65 * javax.net.ssl.SSLSession#invalidate() 66 * javax.net.ssl.SSLSession#isValid() 69 SSLSession s = clientSession; 76 * javax.net.ssl.SSLSession#getPeerPrincipal() 87 * javax.net.ssl.SSLSession#getApplicationBufferSize() 94 * javax.net.ssl.SSLSession#getCipherSuite( [all...] |
SSLSessionBindingListenerTest.java | 22 import javax.net.ssl.SSLSession; 65 SSLSession ss = sock.getSession(); 79 SSLSession ss = sock.getSession();
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
SSLSessionBindingEvent.java | 34 * When a listener object is bound or unbound to an SSLSession by 35 * {@link SSLSession#putValue(String, Object)} 36 * or {@link SSLSession#removeValue(String)}, objects which 41 * @see SSLSession 62 * @param session the SSLSession acting as the source of the event 66 public SSLSessionBindingEvent(SSLSession session, String name) 84 * Returns the SSLSession into which the listener is being bound or 87 * @return the <code>SSLSession</code> 89 public SSLSession getSession() 91 return (SSLSession) getSource() [all...] |
SSLSessionBindingListener.java | 33 * they are being bound or unbound from a SSLSession. When either event 34 * occurs via {@link SSLSession#putValue(String, Object)} 35 * or {@link SSLSession#removeValue(String)}, the event is communicated 38 * @see SSLSession 51 * an SSLSession. 53 * @param event the event identifying the SSLSession into 60 * from a SSLSession. 62 * @param event the event identifying the SSLSession from
|
SSLSessionContext.java | 34 * <code>SSLSession</code>s associated with a single entity. For example, 51 * @see SSLSession 60 * Returns the <code>SSLSession</code> bound to the specified session id. 63 * @return the <code>SSLSession</code> or null if 64 * the specified session id does not refer to a valid SSLSession. 68 public SSLSession getSession(byte[] sessionId); 79 * Sets the timeout limit for <code>SSLSession</code> objects grouped 85 * <code>SSLSession</code> object is invalidated and future connections 100 * Returns the timeout limit of <code>SSLSession</code> objects grouped 106 * <code>SSLSession</code> object is invalidated and future connection [all...] |
/external/conscrypt/src/main/java/org/conscrypt/ |
AbstractSessionContext.java | 33 import javax.net.ssl.SSLSession; 55 private final Map<ByteArray, SSLSession> sessions 56 = new LinkedHashMap<ByteArray, SSLSession>() { 59 Map.Entry<ByteArray, SSLSession> eldest) { 81 private Iterator<SSLSession> sessionIterator() { 83 SSLSession[] array = sessions.values().toArray( 84 new SSLSession[sessions.size()]); 91 final Iterator<SSLSession> i = sessionIterator(); 93 private SSLSession next; 101 SSLSession session = i.next() [all...] |
SSLClientSessionCache.java | 19 import javax.net.ssl.SSLSession; 22 * A persistent {@link javax.net.ssl.SSLSession} cache used by 28 * {@code SSLSession}s into raw bytes and vice versa. The exact makeup of the 37 * @param host from {@link javax.net.ssl.SSLSession#getPeerHost()} 38 * @param port from {@link javax.net.ssl.SSLSession#getPeerPort()} 52 public void putSessionData(SSLSession session, byte[] sessionData);
|
SSLServerSessionCache.java | 19 import javax.net.ssl.SSLSession; 22 * A persistent {@link javax.net.ssl.SSLSession} cache used by 29 * {@code SSLSession}s into raw bytes and vice versa. The exact makeup of the 38 * @param id from {@link javax.net.ssl.SSLSession#getId()} 51 public void putSessionData(SSLSession session, byte[] sessionData);
|
ServerSessionContext.java | 19 import javax.net.ssl.SSLSession; 53 protected void sessionRemoved(SSLSession session) {} 56 public SSLSession getSession(byte[] sessionId) { 58 SSLSession cachedSession = super.getSession(sessionId); 80 void putSession(SSLSession session) {
|
ClientSessionContext.java | 21 import javax.net.ssl.SSLSession; 33 private final HashMap<HostAndPort, SSLSession> sessionsByHostAndPort = new HashMap<>(); 50 protected void sessionRemoved(SSLSession session) { 69 public SSLSession getSession(String host, int port) { 73 SSLSession session; 101 public void putSession(SSLSession session) {
|
/external/conscrypt/src/stub/java/javax/net/ssl/ |
ExtendedSSLSession.java | 21 import javax.net.ssl.SSLSession; 26 public abstract class ExtendedSSLSession implements SSLSession {
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/ |
PoloUtil.java | 25 import javax.net.ssl.SSLSession; 33 * Returns the peer {@link Certificate} for an {@link SSLSession}. 36 * from the {@link SSLSession}. 39 public static Certificate getPeerCert(SSLSession session) 54 * Return the local {@link Certificate} for an {@link SSLSession}. 57 * from the {@link SSLSession} 60 public static Certificate getLocalCert(SSLSession session)
|
/libcore/benchmarks/src/benchmarks/regression/ |
HostnameVerifierBenchmark.java | 28 import javax.net.ssl.SSLSession; 57 public boolean verify(String hostname, SSLSession sslSession) { 59 encodedCertificates = certificatesToBytes(sslSession.getPeerCertificates()); 74 FakeSSLSession sslSession = new FakeSSLSession() { 79 hostnameVerifier.verify(hostname, sslSession); 101 private static class FakeSSLSession implements SSLSession {
|
/external/jetty/src/java/org/eclipse/jetty/server/ssl/ |
SslCertificates.java | 26 import javax.net.ssl.SSLSession; 42 * The name of the SSLSession attribute that will contain any cached information. 46 public static X509Certificate[] getCertChain(SSLSession sslSession) 50 javax.security.cert.X509Certificate javaxCerts[]=sslSession.getPeerCertificateChain(); 105 public static void customize(SSLSession sslSession, EndPoint endpoint, Request request) throws IOException 111 String cipherSuite=sslSession.getCipherSuite(); 116 CachedInfo cachedInfo=(CachedInfo)sslSession.getValue(CACHED_INFO_ATTR); 126 certs=SslCertificates.getCertChain(sslSession); [all...] |
/external/okhttp/okhttp-testing-support/src/main/java/com/squareup/okhttp/testing/ |
RecordingHostnameVerifier.java | 21 import javax.net.ssl.SSLSession; 26 public boolean verify(String hostname, SSLSession session) {
|
/external/apache-http/src/org/apache/http/impl/client/ |
DefaultUserTokenHandler.java | 35 import javax.net.ssl.SSLSession; 73 SSLSession sslsession = conn.getSSLSession(); local 74 if (sslsession != null) { 75 userPrincipal = sslsession.getLocalPrincipal();
|
/external/curl/lib/ |
share.c | 92 if(!share->sslsession) { 94 share->sslsession = calloc(share->max_ssl_sessions, 97 if(!share->sslsession) 134 Curl_safefree(share->sslsession); 199 if(share->sslsession) { 202 Curl_ssl_kill_session(&(share->sslsession[i])); 203 free(share->sslsession);
|
/external/apache-http/android/src/android/net/http/ |
DelegatingSSLSession.java | 24 import javax.net.ssl.SSLSession; 31 * requires a {@link SSLSession}. 33 public class DelegatingSSLSession implements SSLSession {
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
ExternalHttp2Example.java | 29 import javax.net.ssl.SSLSession; 42 @Override public boolean verify(String s, SSLSession sslSession) {
|
ExternalSpdyExample.java | 29 import javax.net.ssl.SSLSession; 42 @Override public boolean verify(String s, SSLSession sslSession) {
|