All Packages Class Hierarchy This Package Previous Next Index
Interface iaik.security.ssl.SessionManager
- public interface SessionManager
This is an interface of abstract methods to let the user implement his own policy
of caching SSL sessions.
- See Also:
- DefaultSessionManager, Session
-
cacheSession(Session)
- Add this session to the session cache.
-
getSession(InetAddress, SessionID)
- Get a session from the session cache.
cacheSession
public abstract void cacheSession(Session session)
- Add this session to the session cache.
- Parameters:
- session - the session to cache
getSession
public abstract Session getSession(InetAddress peerAddress,
SessionID sessionID)
- Get a session from the session cache.
Notice, that there is a difference whether this method is called from
a client or a server.
- CLIENT: A client SSLSocket calls this method with the InetAddress of
the server and no sessionID (= null). The sessionID is taken
from the session.
- SERVER: A server SSLSocket calls this mehtod with the InetAddress of
the client and the sessionID the client tries to resume.
- Parameters:
- peerAddress - the InetAddress of the peer
- sessionID - a SessionID or
null
- Returns:
-
null>/code> if the session is not in the cache or the
SessionManager wont resume this session; the cached session otherwise
All Packages Class Hierarchy This Package Previous Next Index