Partager via


SSLSocket.GetEnabledCipherSuites Method

Definition

Returns the names of the SSL cipher suites which are currently enabled for use on this connection.

[Android.Runtime.Register("getEnabledCipherSuites", "()[Ljava/lang/String;", "GetGetEnabledCipherSuitesHandler")]
public abstract string[]? GetEnabledCipherSuites ();
[<Android.Runtime.Register("getEnabledCipherSuites", "()[Ljava/lang/String;", "GetGetEnabledCipherSuitesHandler")>]
abstract member GetEnabledCipherSuites : unit -> string[]

Returns

String[]

an array of cipher suite names

Attributes

Remarks

Returns the names of the SSL cipher suites which are currently enabled for use on this connection. When an SSLSocket is first created, all enabled cipher suites support a minimum quality of service. Thus, in some environments this value might be empty.

Even if a suite has been enabled, it might never be used. (For example, the peer does not support it, the requisite certificates (and private keys) for the suite are not available, or an anonymous suite is enabled but authentication is required.

Java documentation for javax.net.ssl.SSLSocket.getEnabledCipherSuites().

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