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.
Summary
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Constants
public
static
final
String
VPN_TYPE_IPSEC_HYBRID_RSA
Since: API level 5
VPN type to be used to fill up the vpnType
field when creating a
IPSEC_HYBRID_RSA profile
Constant Value:
"IPSEC_HYBRID_RSA"
public
static
final
String
VPN_TYPE_IPSEC_IKEV2_PSK
Since: API level 11
VPN type to be used to fill up the vpnType
field when creating a
IPSEC_IKEV2_PSK profile
Constant Value:
"IPSEC_IKEV2_PSK"
public
static
final
String
VPN_TYPE_IPSEC_IKEV2_RSA
Since: API level 11
VPN type to be used to fill up the vpnType
field when creating a
IPSEC_IKEV2_RSA profile
Constant Value:
"IPSEC_IKEV2_RSA"
public
static
final
String
VPN_TYPE_IPSEC_XAUTH_PSK
Since: API level 5
VPN type to be used to fill up the vpnType
field when creating a
IPSEC_XAUTH_PSK profile
Constant Value:
"IPSEC_XAUTH_PSK"
public
static
final
String
VPN_TYPE_IPSEC_XAUTH_RSA
Since: API level 5
VPN type to be used to fill up the vpnType
field when creating a
IPSEC_XAUTH_RSA profile
Constant Value:
"IPSEC_XAUTH_RSA"
public
static
final
String
VPN_TYPE_L2TP_IPSEC_CRT
Since: API level 2
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
Constant Value:
"L2TP_IPSEC"
public
static
final
String
VPN_TYPE_L2TP_IPSEC_PSK
Since: API level 2
VPN type to be used to fill up the vpnType
field when creating a
L2TP-IPSEC-PSK VPN profile
Constant Value:
"L2TP_IPSEC_PSK"
public
static
final
String
VPN_TYPE_PPTP
Since: API level 2
VPN type to be used to fill up the vpnType
field when creating a
PPTP VPN profile
Constant Value:
"PPTP"
Fields
Since: API level 5
DNS server addresses of the VPN profile.
public
boolean
enablePPTPEncryption
Since: API level 2
Enable the encryption for PPTP profile
public
List<String>
forwardRoutes
Since: API level 5
Forward routes of the VPN profile.
public
String
ipsecCaCertificate
Since: API level 2
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.
public
String
ipsecIdentifier
Since: API level 5
IPSec identifier of the VPN profile.
public
String
ipsecPreSharedKey
Since: API level 2
Pre-shared key to be used in a L2TP-IPSEC-PSK profile
public
String
ipsecUserCertificate
Since: API level 2
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.
public
String
l2tpSecret
Since: API level 2
Secret to be used in a L2TP profile
public
String
ocspServerUrl
Since: API level 11
Online Certificate Status Protocol (OCSP)
URL of the VPN profile. Used only if
the connection type is IKEV2_RSA
public
String
profileName
Since: API level 2
User-friendly display name of the VPN profile
public
List<String>
searchDomains
Since: API level 5
DNS search domains of the VPN profile.
public
String
serverName
Since: API level 2
public
String
userName
Since: API level 2
public
String
userPassword
Since: API level 2
public
String
vpnType
Since: API level 2
Public Constructors
public
VpnAdminProfile
()