SSLSession.getSessionContext

Returns the context in which this session is bound. <P> This context may be unavailable in some environments, in which case this method returns null. <P> If the context is available and there is a security manager installed, the caller may require permission to access it or a security exception may be thrown. In a Java environment, the security manager's <code>checkPermission</code> method is called with a <code>SSLPermission("getSSLSessionContext")</code> permission.

@throws SecurityException if the calling thread does not have permission to get SSL session context. @return the session context used for this session, or null if the context is unavailable.

interface SSLSession
getSessionContext
()

Meta