View | Details | Return to bug 35482
Collapse All | Expand All

(-)javax/rmi/ssl/SslRMIClientSocketFactory.java (-4 / +6 lines)
Lines 50-56 import java.rmi.server.RMIClientSocketFa Link Here
50
 * SslRMIClientSocketFactory
50
 * SslRMIClientSocketFactory
51
 *
51
 *
52
 * This class implements an RMIClientSocketFactory for SSL sockets.
52
 * This class implements an RMIClientSocketFactory for SSL sockets.
53
 * it uses the defeult SSLClientSocketFactory.
53
 * it uses the default SSLClientSocketFactory.
54
 *
54
 *
55
 * This class can optionally use the following system properties, if set: 
55
 * This class can optionally use the following system properties, if set: 
56
 * <code>javax.rmi.ssl.client.enabledCipherSuites</code>
56
 * <code>javax.rmi.ssl.client.enabledCipherSuites</code>
Lines 92-108 public class SslRMIClientSocketFactory Link Here
92
92
93
  private String[] getProp(String p)
93
  private String[] getProp(String p)
94
  {
94
  {
95
    StringTokenizer st;
95
    String o;
96
    try
96
    try
97
      {
97
      {
98
	String o = (String)System.getProperty( p );
98
	o = System.getProperty(p);
99
	st = new StringTokenizer( o, "," );
100
      }
99
      }
101
    catch(SecurityException se)
100
    catch(SecurityException se)
102
      {
101
      {
103
	return null;
102
	return null;
104
      }
103
      }
105
104
105
    if (o == null)
106
      return null;
107
    StringTokenizer st = new StringTokenizer( o, "," );
106
    int n = st.countTokens();
108
    int n = st.countTokens();
107
    if( n < 1 )
109
    if( n < 1 )
108
      return null;
110
      return null;

Return to bug 35482