Corrections to Chapter 12 of Java Network Programming, Secure Sockets

p. 392: In the third paragraph, jre/lib/ext/security/ should be jre/lib/security/ That is, delete ext/ from the path.

p. 392: In the second to last paragraph, java.policy should be

p. 399: SSL_RSA_WITH_RC4_128_SHA uses 128-bit keys, not 40-bit keys.

p. 404: In Example 12-2, I neglected to actually use the algorithm constant I defined. The code still works but it should be changed as follows:

First change

public final static String algorithm = "SSLv3";


public final static String algorithm = "SSL";

Then change

SSLContext context = SSLContext.getInstance("SSL");


SSLContext context = SSLContext.getInstance(algorithm);

[ Java Network Programming Corrections | Java Network Programming Home Page | Table of Contents | Examples | Order from Amazon ] ]

Copyright 2001 Elliotte Rusty Harold
Last Modified December 21, 2002