IT. Expert System.

Android Reference

SSLSocketTest


android.core

Class SSLSocketTest



  • public class SSLSocketTest
    extends TestCase
    SSL integration tests that hit real servers.
    • Constructor Detail

      • SSLSocketTest

        public SSLSocketTest()
    • Method Detail

      • testSimple

        public void testSimple()
                        throws IOException
        Does a single request for each of the hosts. Consumes the response.
        Throws:
        IOException - If a problem occurs.
      • testRepeatedClose

        public void testRepeatedClose()
                               throws IOException
        Does repeated requests for each of the hosts, with the connection being closed in between.
        Throws:
        IOException - If a problem occurs.
      • testRepeatedKeepAlive

        public void testRepeatedKeepAlive()
                                   throws IOException
        Does repeated requests for each of the hosts, with the connection being kept alive in between.
        Throws:
        IOException - If a problem occurs.
      • testShortTimeout

        public void testShortTimeout()
                              throws IOException
        Does repeated requests for each of the hosts, with the connection being closed in between. Waits a couple of seconds after each request, but stays within a reasonable timeout. Expectation is that the connection stays open.
        Throws:
        IOException - If a problem occurs.
      • testLongTimeout

        public void testLongTimeout()
        Does repeated requests for each of the hosts, with the connection being kept alive in between. Waits a longer time after each request. Expectation is that the host closes the connection.
      • xxtestBrokenConnection

        public void xxtestBrokenConnection()
        Does repeated requests for each of the hosts, with the connection being closed in between. Waits a longer time after each request. Expectation is that the host closes the connection.
      • xxtestBrokenConnection2

        public void xxtestBrokenConnection2()
        Does repeated requests for each of the hosts, with the connection being closed in between. Waits a longer time after each request. Expectation is that the host closes the connection.
      • testContextInitNullArgs

        public void testContextInitNullArgs()
                                     throws Exception
        Regression test for 865926: SSLContext.init() should use default values for null arguments.
        Throws:
        Exception
      • testDefaultAlgorithms

        public void testDefaultAlgorithms()
                                   throws Exception
        Regression test for 963650: javax.net.ssl.KeyManager has no implemented (documented?) algorithms.
        Throws:
        Exception
      • testMultithreadedClose

        public void testMultithreadedClose()
                                    throws Exception
        Regression test for problem where close() resulted in a hand if a different thread was sitting in a blocking read or write.
        Throws:
        Exception
      • testMultithreadedFetch

        public void testMultithreadedFetch()
        Regression test for problem where multiple threads with multiple SSL connection would cause problems due to either missing native locking or the slowness of the SSL connections.
      • testClientAuth

        public void testClientAuth()
        Implements the actual test case. Launches a server and a client, requires client authentication and checks the certificates afterwards (not in the usual sense, we just make sure that we got the expected certificates, because our self-signed test certificates are not valid.)
      • testSSLHandshakeHangTimeout

        public void testSSLHandshakeHangTimeout()
      • testSSLHandshakeHangClose

        public void testSSLHandshakeHangClose()


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 424 / 158856338. Delta: 0.11625 с