Aracılığıyla paylaş


SSLEngine.SetEnabledCipherSuites(String[]) Method

Definition

Sets the cipher suites enabled for use on this engine.

[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 specified cipher suites is not supported, or if suites is null.

Remarks

Sets the cipher suites enabled for use on this engine.

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 cipher suite may never be used on a engine.

Java documentation for javax.net.ssl.SSLEngine.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