Name
Interface javax.net.ssl.SSLSession
Synopsis
SSL sessions are used to
obtain information about a particular SSL client or server socket. In particular, the session object can be used to retrieve (via the getPeerCertificateChain( )
method) the certificate of the connected peer; you should examine the name within this certificate to make sure that it matches the name of the server to which you want to connect. The session object is obtained from the SSL socket.
Class Definition
public interface javax.net.ssl.SSLSession { // Instance Methods public abstract String getCipherSuite( ); public abstract long getCreationTime( ); public abstract byte[] getId( ); public abstract long getLastAccessedTime( ); public abstract javax.security.cert.X509Certificate[] getPeerCertificateChain( ); public abstract String getPeerHost( ); public abstract SSLSessionContext getSessionContext( ); public abstract Object getValue(String); public abstract String[] getValueNames( ); public abstract void invalidate( ); public abstract void putValue(String, Object); public abstract void removeValue(String); }
Get Java Security, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.