9 * This code is distributed in the hope that it will be useful, but WITHOUT
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,
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 * @modules java.base/sun.security.ssl
30 * @run main/othervm LengthCheckTest
31 * @key randomness
32 */
33
34 /**
35 * A SSLEngine usage example which simplifies the presentation
36 * by removing the I/O and multi-threading concerns.
37 *
38 * The test creates two SSLEngines, simulating a client and server.
39 * The "transport" layer consists two byte buffers: think of them
40 * as directly connected pipes.
41 *
42 * Note, this is a *very* simple example: real code will be much more
43 * involved. For example, different threading and I/O models could be
44 * used, transport mechanisms could close unexpectedly, and so on.
45 *
46 * When this application runs, notice that several messages
47 * (wrap/unwrap) pass before any application data is consumed or
48 * produced. (For more information, please see the SSL/TLS
49 * specifications.) There may several steps for a successful handshake,
|