Returns a <code>SSLContext</code> object that implements the
specified secure socket protocol.
<p> A new SSLContext object encapsulating the
SSLContextSpi implementation from the specified provider
is returned. The specified provider must be registered
in the security provider list.
<p> Note that the list of registered providers may be retrieved via
the {@link Security#getProviders() Security.getProviders()} method.
@param protocol the standard name of the requested protocol.
See the SSLContext section in the <a href=
"{@docRoot}/../technotes/guides/security/StandardNames.html#SSLContext">
Java Cryptography Architecture Standard Algorithm Name
Documentation</a>
for information about standard protocol names.
@param provider the name of the provider.
@return the new <code>SSLContext</code> object.
@throws NoSuchAlgorithmException if a SSLContextSpi
implementation for the specified protocol is not
available from the specified provider.
@throws NoSuchProviderException if the specified provider is not
registered in the security provider list.
@throws IllegalArgumentException if the provider name is null or empty.
@throws NullPointerException if protocol is null.
Returns a <code>SSLContext</code> object that implements the specified secure socket protocol.
<p> A new SSLContext object encapsulating the SSLContextSpi implementation from the specified provider is returned. The specified provider must be registered in the security provider list.
<p> Note that the list of registered providers may be retrieved via the {@link Security#getProviders() Security.getProviders()} method.
@param protocol the standard name of the requested protocol. See the SSLContext section in the <a href= "{@docRoot}/../technotes/guides/security/StandardNames.html#SSLContext"> Java Cryptography Architecture Standard Algorithm Name Documentation</a> for information about standard protocol names.
@param provider the name of the provider.
@return the new <code>SSLContext</code> object.
@throws NoSuchAlgorithmException if a SSLContextSpi implementation for the specified protocol is not available from the specified provider.
@throws NoSuchProviderException if the specified provider is not registered in the security provider list.
@throws IllegalArgumentException if the provider name is null or empty. @throws NullPointerException if protocol is null.