Partager via


SSLCertificateSocketFactory.GetNpnSelectedProtocol(Socket) Method

Definition

Returns the Next Protocol Negotiation (NPN) protocol selected by client and server, or null if no protocol was negotiated.

[Android.Runtime.Register("getNpnSelectedProtocol", "(Ljava/net/Socket;)[B", "GetGetNpnSelectedProtocol_Ljava_net_Socket_Handler")]
public virtual byte[]? GetNpnSelectedProtocol (Java.Net.Socket? socket);
[<Android.Runtime.Register("getNpnSelectedProtocol", "(Ljava/net/Socket;)[B", "GetGetNpnSelectedProtocol_Ljava_net_Socket_Handler")>]
abstract member GetNpnSelectedProtocol : Java.Net.Socket -> byte[]
override this.GetNpnSelectedProtocol : Java.Net.Socket -> byte[]

Parameters

socket
Socket

a socket created by this factory.

Returns

Byte[]
Attributes

Exceptions

if the socket was not created by this factory.

Remarks

Returns the Next Protocol Negotiation (NPN) protocol selected by client and server, or null if no protocol was negotiated.

Java documentation for android.net.SSLCertificateSocketFactory.getNpnSelectedProtocol(java.net.Socket).

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