public class

VpnAdminProfile

extends Object
implements Parcelable
java.lang.Object
   ↳ com.samsung.android.knox.net.vpn.VpnAdminProfile

Deprecated From API level 30 on, please refer to GenericVpnPolicy for VPN profile configuration.

Class Overview

This class contains information required to set up an Android VPN profile on the device. When creating a VPN profile of a particular type, leave fields associated with other types blank.

Since
API level 2
MDM 2.0

Summary

Constants
String VPN_TYPE_IPSEC_HYBRID_RSA Deprecated in API level 35
String VPN_TYPE_IPSEC_IKEV2_PSK Deprecated in API level 35
String VPN_TYPE_IPSEC_IKEV2_RSA Deprecated in API level 35
String VPN_TYPE_IPSEC_XAUTH_PSK Deprecated in API level 35
String VPN_TYPE_IPSEC_XAUTH_RSA Deprecated in API level 35
String VPN_TYPE_L2TP_IPSEC_CRT Deprecated in API level 35
String VPN_TYPE_L2TP_IPSEC_PSK Deprecated in API level 35
String VPN_TYPE_PPTP Deprecated in API level 35
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public List<String> dnsServers Deprecated in API level 35
public boolean enablePPTPEncryption Deprecated in API level 35
public List<String> forwardRoutes Deprecated in API level 35
public String ipsecCaCertificate Deprecated in API level 35
public String ipsecIdentifier Deprecated in API level 35
public String ipsecPreSharedKey Deprecated in API level 35
public String ipsecUserCertificate Deprecated in API level 35
public String l2tpSecret Deprecated in API level 35
public String ocspServerUrl Deprecated in API level 35
public String profileName Deprecated in API level 35
public List<String> searchDomains Deprecated in API level 35
public String serverName Deprecated in API level 35
public String userName Deprecated in API level 35
public String userPassword Deprecated in API level 35
public String vpnType Deprecated in API level 35
Public Constructors
VpnAdminProfile()
Default Constructor
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final String VPN_TYPE_IPSEC_HYBRID_RSA

Since: API level 5

Deprecated in API level 35

VPN type to be used to fill up the vpnType field when creating a IPSEC_HYBRID_RSA profile

Since
API level 5
MDM 3.0
Constant Value: "IPSEC_HYBRID_RSA"

public static final String VPN_TYPE_IPSEC_IKEV2_PSK

Since: API level 11

Deprecated in API level 35

VPN type to be used to fill up the vpnType field when creating a IPSEC_IKEV2_PSK profile

Since
API level 11
MDM 5.0
Constant Value: "IPSEC_IKEV2_PSK"

public static final String VPN_TYPE_IPSEC_IKEV2_RSA

Since: API level 11

Deprecated in API level 35

VPN type to be used to fill up the vpnType field when creating a IPSEC_IKEV2_RSA profile

Since
API level 11
MDM 5.0
Constant Value: "IPSEC_IKEV2_RSA"

public static final String VPN_TYPE_IPSEC_XAUTH_PSK

Since: API level 5

Deprecated in API level 35

VPN type to be used to fill up the vpnType field when creating a IPSEC_XAUTH_PSK profile

Since
API level 5
MDM 3.0
Constant Value: "IPSEC_XAUTH_PSK"

public static final String VPN_TYPE_IPSEC_XAUTH_RSA

Since: API level 5

Deprecated in API level 35

VPN type to be used to fill up the vpnType field when creating a IPSEC_XAUTH_RSA profile

Since
API level 5
MDM 3.0
Constant Value: "IPSEC_XAUTH_RSA"

public static final String VPN_TYPE_L2TP_IPSEC_CRT

Since: API level 2

Deprecated in API level 35

VPN type to be used to fill up the vpnType field when creating a L2TP-IPSEC-CRT profile.

NOTE:
Android has been handling vpnType L2TP-IPSEC-RSA as L2TP-IPSEC-CRT

Since
API level 2
MDM 2.0
Constant Value: "L2TP_IPSEC"

public static final String VPN_TYPE_L2TP_IPSEC_PSK

Since: API level 2

Deprecated in API level 35

VPN type to be used to fill up the vpnType field when creating a L2TP-IPSEC-PSK VPN profile

Since
API level 2
MDM 2.0
Constant Value: "L2TP_IPSEC_PSK"

public static final String VPN_TYPE_PPTP

Since: API level 2

Deprecated in API level 35

VPN type to be used to fill up the vpnType field when creating a PPTP VPN profile

Since
API level 2
MDM 2.0
Constant Value: "PPTP"

Fields

public List<String> dnsServers

Since: API level 5

Deprecated in API level 35

DNS server addresses of the VPN profile.

Since
API level 5
MDM 3.0

public boolean enablePPTPEncryption

Since: API level 2

Deprecated in API level 35

Enable the encryption for PPTP profile

Since
API level 2
MDM 2.0

public List<String> forwardRoutes

Since: API level 5

Deprecated in API level 35

Forward routes of the VPN profile.

Since
API level 5
MDM 3.0

public String ipsecCaCertificate

Since: API level 2

Deprecated in API level 35

Name of the CA certificate to be used in a L2TP-IPSEC-CRT profile. This certificate is picked up from the Android Keystore, hence this certificate must be installed on the device for the VPN connection to function properly.

Since
API level 2
MDM 2.0

public String ipsecIdentifier

Since: API level 5

Deprecated in API level 35

IPSec identifier of the VPN profile.

Since
API level 5
MDM 3.0

public String ipsecPreSharedKey

Since: API level 2

Deprecated in API level 35

Pre-shared key to be used in a L2TP-IPSEC-PSK profile

Since
API level 2
MDM 2.0

public String ipsecUserCertificate

Since: API level 2

Deprecated in API level 35

Name of the User certificate to be used in a L2TP-IPSEC-CRT profile. This certificate is picked up from the Android Keystore, hence this certificate must be installed on the device for the VPN connection to function properly.

Since
API level 2
MDM 2.0

public String l2tpSecret

Since: API level 2

Deprecated in API level 35

Secret to be used in a L2TP profile

Since
API level 2
MDM 2.0

public String ocspServerUrl

Since: API level 11

Deprecated in API level 35

Online Certificate Status Protocol (OCSP) URL of the VPN profile. Used only if the connection type is IKEV2_RSA

Since
API level 11
MDM 5.0

public String profileName

Since: API level 2

Deprecated in API level 35

User-friendly display name of the VPN profile

Since
API level 2
MDM 2.0

public List<String> searchDomains

Since: API level 5

Deprecated in API level 35

DNS search domains of the VPN profile.

Since
API level 5
MDM 3.0

public String serverName

Since: API level 2

Deprecated in API level 35

VPN server hostname

Since
API level 2
MDM 2.0

public String userName

Since: API level 2

Deprecated in API level 35

Username used for login

Since
API level 2
MDM 2.0

public String userPassword

Since: API level 2

Deprecated in API level 35

Password used for login

Since
API level 2
MDM 2.0

public String vpnType

Since: API level 2

Deprecated in API level 35

Since
API level 2
MDM 2.0

Public Constructors

public VpnAdminProfile ()

Since: API level 2

Default Constructor

Since
API level 2
MDM 2.0