Example usage for Java javax.net.ssl SSLSession fields, constructors, methods, implement or subclass
The text is from its open source code.
int | getApplicationBufferSize() Gets the current size of the largest application data that is expected when using this session. |
String | getCipherSuite() Returns the name of the SSL cipher suite which is used for all connections in the session. |
Class> | getClass() Returns the runtime class of this Object . |
long | getCreationTime() Returns the time at which this Session representation was created, in milliseconds since midnight, January 1, 1970 UTC. |
byte[] | getId() Returns the identifier assigned to this Session. |
long | getLastAccessedTime() Returns the last time this Session representation was accessed by the session level infrastructure, in milliseconds since midnight, January 1, 1970 UTC. |
java.security.cert.Certificate[] | getLocalCertificates() Returns the certificate(s) that were sent to the peer during handshaking. |
int | getPacketBufferSize() Gets the current size of the largest SSL/TLS/DTLS packet that is expected when using this session. |
javax.security.cert.X509Certificate[] | getPeerCertificateChain() Returns the identity of the peer which was identified as part of defining the session. |
java.security.cert.Certificate[] | getPeerCertificates() Returns the identity of the peer which was established as part of defining the session. |
String | getPeerHost() Returns the host name of the peer in this session. |
int | getPeerPort() Returns the port number of the peer in this session. |
Principal | getPeerPrincipal() Returns the identity of the peer which was established as part of defining the session. |
String | getProtocol() Returns the standard name of the protocol used for all connections in the session. |
SSLSessionContext | getSessionContext() Returns the context in which this session is bound. |
Object | getValue(String name) Returns the object bound to the given name in the session's application layer data. |
void | invalidate() Invalidates the session. |
boolean | isValid() Returns whether this session is valid and available for resuming or joining. |
void | putValue(String name, Object value) Binds the specified value object into the session's application layer data with the given name . |