Udostępnij za pośrednictwem


SSLSocketFactory.GetSupportedCipherSuites Method

Definition

Returns the names of the cipher suites which could be enabled for use on an SSL connection.

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

Returns

String[]

an array of cipher suite names

Attributes

Remarks

Returns the names of the cipher suites which could be enabled for use on an SSL connection. Normally, only a subset of these will actually be enabled by default, since this list may include cipher suites which do not meet quality of service requirements for those defaults. Such cipher suites are useful in specialized applications.

<p class="caution">Applications should not blindly enable all supported cipher suites. The supported cipher suites can include signaling cipher suite values that can cause connection problems if enabled inappropriately.

The proper way to use this method is to either check if a specific cipher suite is supported via Arrays.asList(getSupportedCipherSuites()).contains(...) or to filter a desired list of cipher suites to only the supported ones via desiredSuiteSet.retainAll(Arrays.asList(getSupportedCipherSuites())).

Java documentation for javax.net.ssl.SSLSocketFactory.getSupportedCipherSuites().

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