VpnProfileState.SessionId Property

Definition

Retrieves the Session Key

public string? SessionId { [Android.Runtime.Register("getSessionId", "()Ljava/lang/String;", "", ApiSince=33)] get; }
[<get: Android.Runtime.Register("getSessionId", "()Ljava/lang/String;", "", ApiSince=33)>]
member this.SessionId : string

Property Value

the unique key for the platform VPN session, or null if it is not running.

Attributes

Remarks

Retrieves the Session Key

The session key is an ephemeral key uniquely identifying the session for a Platform VPN. The lifetime of this key is tied to the lifetime of the VPN session. In other words, reprovisioning of the VPN profile, restarting of the device, or manually restarting the platform VPN session will result in a new VPN session, and a new key.

Java documentation for android.net.VpnProfileState.getSessionId().

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