1 7 8 15 16 package javax.net.ssl; 17 18 import java.net.InetAddress; 19 import java.security.Principal; 20 21 57 public interface SSLSession 58 { 59 60 65 public byte[] getId(); 66 67 83 public SSLSessionContext getSessionContext(); 84 85 91 public long getCreationTime(); 92 93 109 public long getLastAccessedTime(); 110 111 121 public void invalidate(); 122 123 132 public boolean isValid(); 133 134 152 public void putValue(String name, Object value); 153 154 166 public Object getValue(String name); 167 168 182 public void removeValue(String name); 183 184 194 public String[] getValueNames(); 195 196 211 public java.security.cert.Certificate[] getPeerCertificates() 212 throws SSLPeerUnverifiedException; 213 214 234 public java.security.cert.Certificate[] getLocalCertificates(); 235 236 257 public javax.security.cert.X509Certificate[] getPeerCertificateChain() 258 throws SSLPeerUnverifiedException; 259 260 276 public Principal getPeerPrincipal() throws SSLPeerUnverifiedException; 277 278 291 public Principal getLocalPrincipal(); 292 293 303 public String getCipherSuite(); 304 305 314 public String getProtocol(); 315 316 334 public String getPeerHost(); 335 336 351 public int getPeerPort(); 352 353 370 public int getPacketBufferSize(); 371 372 388 public int getApplicationBufferSize(); 389 } 390 | Popular Tags |