Compartir a través de


SSLCertificateSocketFactory.SetNpnProtocols(Byte[][]) Method

Definition

Sets the Next Protocol Negotiation (NPN) protocols that this peer is interested in.

[Android.Runtime.Register("setNpnProtocols", "([[B)V", "GetSetNpnProtocols_arrayarrayBHandler")]
public virtual void SetNpnProtocols (byte[][]? npnProtocols);
[<Android.Runtime.Register("setNpnProtocols", "([[B)V", "GetSetNpnProtocols_arrayarrayBHandler")>]
abstract member SetNpnProtocols : byte[][] -> unit
override this.SetNpnProtocols : byte[][] -> unit

Parameters

npnProtocols
Byte[][]

a non-empty list of protocol byte arrays. All arrays must be non-empty and of length less than 256.

Attributes

Remarks

Sets the Next Protocol Negotiation (NPN) protocols that this peer is interested in.

For servers this is the sequence of protocols to advertise as supported, in order of preference. This list is sent unencrypted to all clients that support NPN.

For clients this is a list of supported protocols to match against the server's list. If there is no protocol supported by both client and server then the first protocol in the client's list will be selected. The order of the client's protocols is otherwise insignificant.

Java documentation for android.net.SSLCertificateSocketFactory.setNpnProtocols(byte[][]).

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