Javax.Net.Ssl.SSLSocket.SetEnabledProtocols Method
Sets the names of the protocols to be enabled.

Syntax

[Android.Runtime.Register("setEnabledProtocols", "([Ljava/lang/String;)V", "GetSetEnabledProtocols_arrayLjava_lang_String_Handler")]
public abstract void SetEnabledProtocols (string[] protocols)

Parameters

protocols
the names of the to be enabled protocols.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif one of the protocols is not supported.

Remarks

Sets the names of the protocols to be enabled. Only protocols returned by SSLSocket.GetSupportedProtocols are allowed.

[Android Documentation]

Requirements

Namespace: Javax.Net.Ssl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1