public class VpnProfile extends Object implements Cloneable, Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<VpnProfile> |
CREATOR |
String |
dnsServers |
String |
ipsecCaCert |
String |
ipsecIdentifier |
String |
ipsecSecret |
String |
ipsecServerCert |
String |
ipsecUserCert |
String |
key |
String |
l2tpSecret |
boolean |
mppe |
String |
name |
String |
password |
String |
routes |
boolean |
saveLogin |
String |
searchDomains |
String |
server |
int |
type |
static int |
TYPE_IPSEC_HYBRID_RSA |
static int |
TYPE_IPSEC_XAUTH_PSK |
static int |
TYPE_IPSEC_XAUTH_RSA |
static int |
TYPE_L2TP_IPSEC_PSK |
static int |
TYPE_L2TP_IPSEC_RSA |
static int |
TYPE_MAX |
static int |
TYPE_PPTP |
String |
username |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
VpnProfile(Parcel in) |
VpnProfile(String key) |
Modifier and Type | Method and Description |
---|---|
static VpnProfile |
decode(String key,
byte[] value) |
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
byte[] |
encode() |
boolean |
isValidLockdownProfile()
Test if profile is valid for lockdown, which requires IPv4 address for
both server and DNS.
|
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public static final int TYPE_PPTP
public static final int TYPE_L2TP_IPSEC_PSK
public static final int TYPE_L2TP_IPSEC_RSA
public static final int TYPE_IPSEC_XAUTH_PSK
public static final int TYPE_IPSEC_XAUTH_RSA
public static final int TYPE_IPSEC_HYBRID_RSA
public static final int TYPE_MAX
public final String key
public String name
public int type
public String server
public String username
public String password
public String dnsServers
public String searchDomains
public String routes
public boolean mppe
public String l2tpSecret
public String ipsecIdentifier
public String ipsecSecret
public String ipsecUserCert
public String ipsecCaCert
public String ipsecServerCert
public boolean saveLogin
public static final Parcelable.Creator<VpnProfile> CREATOR
public void writeToParcel(Parcel out, int flags)
Parcelable
writeToParcel
in interface Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public static VpnProfile decode(String key, byte[] value)
public byte[] encode()
public boolean isValidLockdownProfile()
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR