< prev index next >

test/sun/security/ssl/ClientHandshaker/LengthCheckTest.java

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8044860
  27  * @summary Vectors and fixed length fields should be verified
  28  *          for allowed sizes.
  29  * @run main/othervm LengthCheckTest

  30  */
  31 
  32 /**
  33  * A SSLEngine usage example which simplifies the presentation
  34  * by removing the I/O and multi-threading concerns.
  35  *
  36  * The test creates two SSLEngines, simulating a client and server.
  37  * The "transport" layer consists two byte buffers:  think of them
  38  * as directly connected pipes.
  39  *
  40  * Note, this is a *very* simple example: real code will be much more
  41  * involved.  For example, different threading and I/O models could be
  42  * used, transport mechanisms could close unexpectedly, and so on.
  43  *
  44  * When this application runs, notice that several messages
  45  * (wrap/unwrap) pass before any application data is consumed or
  46  * produced.  (For more information, please see the SSL/TLS
  47  * specifications.)  There may several steps for a successful handshake,
  48  * so it's typical to see the following series of operations:
  49  *




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8044860
  27  * @summary Vectors and fixed length fields should be verified
  28  *          for allowed sizes.
  29  * @run main/othervm LengthCheckTest
  30  * @key randomness
  31  */
  32 
  33 /**
  34  * A SSLEngine usage example which simplifies the presentation
  35  * by removing the I/O and multi-threading concerns.
  36  *
  37  * The test creates two SSLEngines, simulating a client and server.
  38  * The "transport" layer consists two byte buffers:  think of them
  39  * as directly connected pipes.
  40  *
  41  * Note, this is a *very* simple example: real code will be much more
  42  * involved.  For example, different threading and I/O models could be
  43  * used, transport mechanisms could close unexpectedly, and so on.
  44  *
  45  * When this application runs, notice that several messages
  46  * (wrap/unwrap) pass before any application data is consumed or
  47  * produced.  (For more information, please see the SSL/TLS
  48  * specifications.)  There may several steps for a successful handshake,
  49  * so it's typical to see the following series of operations:
  50  *


< prev index next >