javax.net.ssl.SSLSession |
The interface representing an SSL session.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns the maximum size that an application buffer can be for this
session.
|
||||||||||
|
Returns the name of the cipher suite used in this session.
|
||||||||||
|
Returns the time this session was created, in milliseconds since midnight
January 1st 1970 UTC.
|
||||||||||
|
Returns this sessions identifier.
|
||||||||||
|
Returns the time this session was last accessed, in milliseconds since
midnight January 1st 1970 UTC.
|
||||||||||
|
Returns the list of certificates that were used to identify the local
side to the peer during the handshake.
|
||||||||||
|
Returns the principal used to identify the local side to the peer during
the handshake.
|
||||||||||
|
Returns the maximum size that a network buffer can be for this session.
|
||||||||||
|
Returns the list of certificates the peer used to identify itself during
the handshake.
|
||||||||||
|
Returns the list of certificates the peer used to identify itself during
the handshake.
|
||||||||||
|
Returns the host name of the peer of this session.
|
||||||||||
|
Returns the port number of the peer of this session.
|
||||||||||
|
Returns the principal identifying the peer during the handshake.
|
||||||||||
|
Returns the protocol name that is used for all connections in this
session.
|
||||||||||
|
Returns the context of this session, or null if no context is available.
|
||||||||||
|
Returns the object bound to the specified name in this session's
application layer data.
|
||||||||||
|
Returns the list of the object names bound to this session's application
layer data..
|
||||||||||
|
Invalidates this session.
|
||||||||||
|
Returns whether this session is valid.
|
||||||||||
|
Binds the specified object under the specified name in this session's
application layer data.
|
||||||||||
|
Removes the binding for the specified name in this session's application
layer data.
|
Returns the maximum size that an application buffer can be for this session.
Returns the name of the cipher suite used in this session.
Returns the time this session was created, in milliseconds since midnight January 1st 1970 UTC.
Returns this sessions identifier.
Returns the time this session was last accessed, in milliseconds since midnight January 1st 1970 UTC.
Returns the list of certificates that were used to identify the local side to the peer during the handshake.
Returns the principal used to identify the local side to the peer during the handshake.
Returns the maximum size that a network buffer can be for this session.
Returns the list of certificates the peer used to identify itself during the handshake.
Note: this method exists for compatility reasons, use
getPeerCertificates()
instead.
SSLPeerUnverifiedException | if the identity of the peer is not verified. |
---|
Returns the list of certificates the peer used to identify itself during the handshake.
SSLPeerUnverifiedException | if the identity of the peer is not verified. |
---|
Returns the host name of the peer of this session. The host name is not authenticated.
null
if no
host name is available.
Returns the port number of the peer of this session. The port number is not authenticated.
-1
is no port number is
available.
Returns the principal identifying the peer during the handshake.
SSLPeerUnverifiedException | if the identity of the peer has not been verified. |
---|
Returns the protocol name that is used for all connections in this session.
Returns the context of this session, or null if no context is available.
Returns the object bound to the specified name in this session's application layer data.
name | the name of the bound value. |
---|
null
if the
specified name does not exist or is not accessible in the current
access control context.
IllegalArgumentException |
if
name
is
null
.
|
---|
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.
Invalidates this session.
No new connections can be created, but any existing connection remains valid until it is closed.
Returns whether this session is valid.
true
if this session is valid, otherwise
false
.
Binds the specified object under the specified name in this session's application layer data.
For bindings (new or existing) implementing the
SSLSessionBindingListener
interface the object will be notified.
name | the name to bind the object to. |
---|---|
value | the object to bind. |
IllegalArgumentException |
if either
name
or
value
is
null
.
|
---|
Removes the binding for the specified name in this session's application
layer data. If the existing binding implements the
SSLSessionBindingListener
interface the object will be notified.
name | the binding to remove. |
---|
IllegalArgumentException |
if
name
is
null
.
|
---|