# Print output for @column tags ?> PlatformVpnProfile - Android SDK | Android Developers

Most visited

Recently visited

PlatformVpnProfile

public abstract class PlatformVpnProfile
extends Object

java.lang.Object
   ↳ android.net.PlatformVpnProfile


PlatformVpnProfile represents a configuration for a platform-based VPN implementation.

Platform-based VPNs allow VPN applications to provide configuration and authentication options to leverage the Android OS' implementations of well-defined control plane (authentication, key negotiation) and data plane (per-packet encryption) protocols to simplify the creation of VPN tunnels. In contrast, VpnService based VPNs must implement both the control and data planes on a per-app basis.

See also:

Summary

Constants

int TYPE_IKEV2_IPSEC_PSK

int TYPE_IKEV2_IPSEC_RSA

int TYPE_IKEV2_IPSEC_USER_PASS

Public methods

final int getType()

Returns the profile integer type.

final String getTypeString()

Returns a type string describing the VPN profile type

Inherited methods

Constants

TYPE_IKEV2_IPSEC_PSK

public static final int TYPE_IKEV2_IPSEC_PSK

Constant Value: 7 (0x00000007)

TYPE_IKEV2_IPSEC_RSA

public static final int TYPE_IKEV2_IPSEC_RSA

Constant Value: 8 (0x00000008)

TYPE_IKEV2_IPSEC_USER_PASS

public static final int TYPE_IKEV2_IPSEC_USER_PASS

Constant Value: 6 (0x00000006)

Public methods

getType

public final int getType ()

Returns the profile integer type.

Returns
int Value is TYPE_IKEV2_IPSEC_USER_PASS, TYPE_IKEV2_IPSEC_PSK, or TYPE_IKEV2_IPSEC_RSA

getTypeString

public final String getTypeString ()

Returns a type string describing the VPN profile type

Returns
String This value cannot be null.