Freigeben über


SSLSocket.SetEnabledCipherSuites(String[]) Method

Definition

Sets the cipher suites enabled for use on this connection.

[Android.Runtime.Register("setEnabledCipherSuites", "([Ljava/lang/String;)V", "GetSetEnabledCipherSuites_arrayLjava_lang_String_Handler")]
public abstract void SetEnabledCipherSuites (string[]? suites);
[<Android.Runtime.Register("setEnabledCipherSuites", "([Ljava/lang/String;)V", "GetSetEnabledCipherSuites_arrayLjava_lang_String_Handler")>]
abstract member SetEnabledCipherSuites : string[] -> unit

Parameters

suites
String[]

Names of all the cipher suites to enable

Attributes

Exceptions

if one of the cipher suite names is not supported.

Remarks

Sets the cipher suites enabled for use on this connection.

Each cipher suite in the suites parameter must have been listed by getSupportedCipherSuites(), or the method will fail. Following a successful call to this method, only suites listed in the suites parameter are enabled for use.

See #getEnabledCipherSuites() for more information on why a specific ciphersuite may never be used on a connection.

Java documentation for javax.net.ssl.SSLSocket.setEnabledCipherSuites(java.lang.String[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to