- protocol
- the requested protocol to create a context for.
- provider
- the name of the provider that provides the requested protocol.
Documentation for this section has not yet been entered.
Type Reason Java.Security.NoSuchAlgorithmException if the specified provider cannot provider the requested protocol. Java.Security.NoSuchProviderException if the specified provider does not exits. Java.Lang.NullPointerException if protocol is null (instead of NoSuchAlgorithmException as in 1.4 release)
Creates a new SSLContext instance for the specified protocol from the specified provider.
The following combinations are supported:
Protocol | Provider | API Levels |
---|---|---|
Default | AndroidOpenSSL | 9+ |
SSL | AndroidOpenSSL | 9+ |
SSL | HarmonyJSSE | 9-19 |
SSLv3 | AndroidOpenSSL | 9+ |
SSLv3 | HarmonyJSSE | 9-19 |
TLS | AndroidOpenSSL | 9+ |
TLS | HarmonyJSSE | 1-19 |
TLSv1 | AndroidOpenSSL | 9+ |
TLSv1 | HarmonyJSSE | 1-19 |
TLSv1.1 | AndroidOpenSSL | 16+ |
TLSv1.2 | AndroidOpenSSL | 16+ |
NOTE: The best practice is to rely on platform defaults rather than explicitly specify a provider. SSLContext.Default and SSLContext.GetInstance(string) are normally preferred over this method.