Methods Summary |
---|
public int | getApplicationBufferSize()Returns the maximum size that an application buffer can be for this
session.
|
public java.lang.String | getCipherSuite()Returns the name of the cipher suite used in this session.
|
public long | getCreationTime()Returns the time this session was created, in milliseconds since midnight
January 1st 1970 UTC.
|
public byte[] | getId()Returns this sessions identifier.
|
public long | getLastAccessedTime()Returns the time this session was last accessed, in milliseconds since
midnight January 1st 1970 UTC.
|
public java.security.cert.Certificate[] | getLocalCertificates()Returns the list of certificates that were used to identify the local
side to the peer during the handshake.
|
public java.security.Principal | getLocalPrincipal()Returns the principal used to identify the local side to the peer during
the handshake.
|
public int | getPacketBufferSize()Returns the maximum size that a network buffer can be for this session.
|
public javax.security.cert.X509Certificate[] | getPeerCertificateChain()Returns the list of certificates the peer used to identify itself during
the handshake.
Note: this method exists for compatility reasons, use
{@link #getPeerCertificates()} instead.
|
public java.security.cert.Certificate[] | getPeerCertificates()Returns the list of certificates the peer used to identify itself during
the handshake.
|
public java.lang.String | getPeerHost()Returns the host name of the peer of this session. The host name is not
authenticated.
|
public int | getPeerPort()Returns the port number of the peer of this session. The port number is
not authenticated.
|
public java.security.Principal | getPeerPrincipal()Returns the principal identifying the peer during the handshake.
|
public java.lang.String | getProtocol()Returns the protocol name that is used for all connections in this
session.
|
public javax.net.ssl.SSLSessionContext | getSessionContext()Returns the context of this session. If a context is available and a
security manager is installed, the
{@code SSLPermission("getSSLSessionContext"} is checked with the security
manager.
|
public java.lang.Object | getValue(java.lang.String name)Returns the object bound to the specified name in this session's
application layer data.
|
public java.lang.String[] | getValueNames()Returns the list of the object names bound to this session's application
layer data..
Depending on the current access control context, the list of object names
may be different.
|
public void | invalidate()Invalidates this session.
No new connections can be created, but any existing connection remains
valid until it is closed.
|
public boolean | isValid()Returns whether this session is valid.
|
public void | putValue(java.lang.String name, java.lang.Object value)Binds the specified object under the specified name in this session's
application layer data.
For bindings (new or existing) implementing the
{@code SSLSessionBindingListener} interface the object will be notified.
|
public void | removeValue(java.lang.String name)Removes the binding for the specified name in this session's application
layer data. If the existing binding implements the
{@code SSLSessionBindingListener} interface the object will be notified.
|