Javax.Net.Ssl.SSLServerSocket.SetEnabledProtocols Method
Sets the names of the protocols to be enabled for new connections.

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 for new connections. Only protocols returned by SSLServerSocket.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