次の方法で共有


SSLServerSocket.SetEnabledCipherSuites(String[]) Method

Definition

Sets the cipher suites enabled for use by accepted connections.

[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 by accepted connections.

The cipher suites must have been listed by getSupportedCipherSuites() as being supported. Following a successful call to this method, only suites listed in the suites parameter are enabled for use.

Suites that require authentication information which is not available in this ServerSocket's authentication context will not be used in any case, even if they are enabled.

SSLSockets returned from accept() inherit this setting.

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