SSLContext.setDefault

Sets the default SSL context. It will be returned by subsequent calls to {@link #getDefault}. The default context must be immediately usable and not require {@linkplain #init initialization}.

@param context the SSLContext @throws NullPointerException if context is null @throws SecurityException if a security manager exists and its <code>checkPermission</code> method does not allow <code>SSLPermission("setDefaultSSLContext")</code>

class SSLContext
static
void
setDefault

Meta