Sdílet prostřednictvím


SSLParameters.GetApplicationProtocols Method

Definition

Returns a prioritized array of application-layer protocol names that can be negotiated over the SSL/TLS protocols.

[Android.Runtime.Register("getApplicationProtocols", "()[Ljava/lang/String;", "GetGetApplicationProtocolsHandler", ApiSince=29)]
public virtual string[]? GetApplicationProtocols ();
[<Android.Runtime.Register("getApplicationProtocols", "()[Ljava/lang/String;", "GetGetApplicationProtocolsHandler", ApiSince=29)>]
abstract member GetApplicationProtocols : unit -> string[]
override this.GetApplicationProtocols : unit -> string[]

Returns

String[]

a non-null, possibly zero-length array of application protocol Strings. The array is ordered based on protocol preference, with protocols[0] being the most preferred.

Attributes

Remarks

Returns a prioritized array of application-layer protocol names that can be negotiated over the SSL/TLS protocols.

The array could be empty (zero-length), in which case protocol indications will not be used.

This method will return a new array each time it is invoked.

Added in 9.

Java documentation for javax.net.ssl.SSLParameters.getApplicationProtocols().

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