1 7 8 15 16 package javax.net.ssl; 17 18 import java.net.*; 19 20 import java.io.IOException; 21 import java.util.Enumeration; 22 import java.util.Vector; 23 24 131 public abstract class SSLSocket extends Socket 132 { 133 134 138 protected SSLSocket() { } 139 140 150 protected SSLSocket(String host, int port) 151 throws IOException, UnknownHostException 152 { } 153 154 163 protected SSLSocket(InetAddress address, int port) throws IOException { } 164 165 178 protected SSLSocket(String host, int port, InetAddress clientAddress, int 179 clientPort) throws IOException, UnknownHostException 180 { } 181 182 194 protected SSLSocket(InetAddress address, int port, InetAddress 195 clientAddress, int clientPort) throws IOException 196 { } 197 198 209 public abstract String[] getSupportedCipherSuites(); 210 211 226 public abstract String[] getEnabledCipherSuites(); 227 228 246 public abstract void setEnabledCipherSuites(String[] suites); 247 248 254 public abstract String[] getSupportedProtocols(); 255 256 262 public abstract String[] getEnabledProtocols(); 263 264 278 public abstract void setEnabledProtocols(String[] protocols); 279 280 297 public abstract SSLSession getSession(); 298 299 308 public abstract void 309 addHandshakeCompletedListener(HandshakeCompletedListener listener); 310 311 319 public abstract void 320 removeHandshakeCompletedListener(HandshakeCompletedListener listener); 321 322 340 public abstract void startHandshake() throws IOException; 341 342 359 public abstract void setUseClientMode(boolean mode); 360 361 369 public abstract boolean getUseClientMode(); 370 371 397 public abstract void setNeedClientAuth(boolean need); 398 399 410 public abstract boolean getNeedClientAuth(); 411 412 437 public abstract void setWantClientAuth(boolean want); 438 439 450 public abstract boolean getWantClientAuth(); 451 452 463 public abstract void setEnableSessionCreation(boolean flag); 464 465 473 public abstract boolean getEnableSessionCreation(); 474 } 475 | Popular Tags |