to top
AFEX APIs
public class

VpnProfileConfig

extends Object
implements Parcelable
java.lang.Object
   ↳ com.ardic.android.parcelables.VpnProfileConfig

Class Overview

Implementation of Parcelable Interface for VPN Profile.

Summary

Nested Classes
enum VpnProfileConfig.VpnType Enumerates VPN Profile Types  
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<VpnProfileConfig> CREATOR
Public Constructors
VpnProfileConfig(String name, VpnProfileConfig.VpnType type, String server, String username, String passwd, List<String> searchDomains, List<String> dnsServers, List<String> routes, boolean mppe, String l2tpSecret, String ipsecIdentifier, String ipsecSecret, String ipsecUserCert, String ipsecCaCert, String ipsecServerCert)
Constructor method of VPN Profile.
Public Methods
int describeContents()
List<String> getDnsServers()
Returns DNS server addresses for VPN profile.
String getIpsecCaCert()
Returns alias of CA Certificate for L2TP-IPsec type VPN profile.
String getIpsecIdentifier()
Returns VPN profile IpSec identifier.
String getIpsecSecret()
Returns VPN profile IpSec secret.
String getIpsecServerCert()
Returns IPsec Server Certificate alias.
String getIpsecUserCert()
Returns alias of User Certificate for L2TP-IPsec type VPN profile.
String getL2tpSecret()
Returns VPN profile L2TP secret.
String getName()
Returns VPN Profile name.
String getPassword()
Returns VPN Profile user password.
List<String> getRoutes()
Returns Forward Routes for VPN profile.
List<String> getSearchDomains()
Returns DNS search domains.
String getServer()
Returns VPN server IP address.
VpnProfileConfig.VpnType getType()
Returns VPN Profile Type.
String getUsername()
Returns VPN Profile user name.
boolean isMppe()
Checks whether Microsoft Point-to-Point Encryption is enabled.
void setDnsServers(List<String> dnsServers)
Sets DNS server addresses for VPN profile.
void setIpsecCaCert(String ipsecCaCert)
Sets alias of CA Certificate for L2TP-IPsec type VPN profile.
void setIpsecIdentifier(String ipsecIdentifier)
Sets VPN profile IpSec identifier
void setIpsecSecret(String ipsecSecret)
Sets VPN profile IpSec secret.
void setIpsecServerCert(String ipsecServerCert)
Sets IPsec Server Certificate alias.
void setIpsecUserCert(String ipsecUserCert)
Sets alias of User Certificate for L2TP-IPsec type VPN profile.
void setL2tpSecret(String l2tpSecret)
Sets VPN profile L2TP secret.
void setMppe(boolean mppe)
Enables Microsoft Point-to-Point Encryption.
void setName(String name)
Sets VPN Profile name.
void setPassword(String password)
Sets VPN Profile user password.
void setRoutes(List<String> routes)
Sets Forward Routes for VPN profile.
void setSearchDomains(List<String> searchDomains)
Sets DNS search domains.
void setServer(String server)
Sets VPN server IP address.
void setType(VpnProfileConfig.VpnType type)
Sets VPN Profile Type.
void setUsername(String username)
Sets VPN Profile user name.
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<VpnProfileConfig> CREATOR

Added in API level 1

Public Constructors

public VpnProfileConfig (String name, VpnProfileConfig.VpnType type, String server, String username, String passwd, List<String> searchDomains, List<String> dnsServers, List<String> routes, boolean mppe, String l2tpSecret, String ipsecIdentifier, String ipsecSecret, String ipsecUserCert, String ipsecCaCert, String ipsecServerCert)

Added in API level 1

Constructor method of VPN Profile.

Parameters
name String: VPN Profile name for the connection listing.
type VpnProfileConfig.VpnType: VPN Profile type.
server String: VPN server IP address.
username String: VPN Profile user name.
passwd String: VPN Profile password.
searchDomains List: DNS search domains.
dnsServers List: VPN Profile DNS servers.
routes List: VPN Profile forward routes.
mppe boolean: Microsoft Point-to-Point Encryption enable flag.
l2tpSecret String: VPN Profile secret
ipsecIdentifier String: VPN Profile Ipsec Identifier.
ipsecSecret String: VPN Profile Ipsec Pre-shared key.
ipsecUserCert String: VPN Profile User Certificate alias.
ipsecCaCert String: VPN Profile CA Certificate alias.
ipsecServerCert String: VPN Profile Server Certificate alias.

Public Methods

public int describeContents ()

Added in API level 1

Returns
int

public List<String> getDnsServers ()

Added in API level 1

Returns DNS server addresses for VPN profile.

Returns
List<String> DNS server addresses for VPN profile

public String getIpsecCaCert ()

Added in API level 1

Returns alias of CA Certificate for L2TP-IPsec type VPN profile.

Returns
String alias of CA Certificate for L2TP-IPsec type VPN profile

public String getIpsecIdentifier ()

Added in API level 1

Returns VPN profile IpSec identifier.

Returns
String VPN profile IpSec identifier

public String getIpsecSecret ()

Added in API level 1

Returns VPN profile IpSec secret.

Returns
String VPN profile IpSec secret

public String getIpsecServerCert ()

Added in API level 1

Returns IPsec Server Certificate alias.

Returns
String IPsec Server Certificate alias

public String getIpsecUserCert ()

Added in API level 1

Returns alias of User Certificate for L2TP-IPsec type VPN profile.

Returns
String alias of User Certificate for L2TP-IPsec type VPN profile.

public String getL2tpSecret ()

Added in API level 1

Returns VPN profile L2TP secret.

Returns
String L2TP secret

public String getName ()

Added in API level 1

Returns VPN Profile name. This is the name shown in VPN Settings Dialog. It is used to identify VPN Profile and it must be unique on the device.

Returns
String VPN Profile name

public String getPassword ()

Added in API level 1

Returns VPN Profile user password.

Returns
String VPN Profile user password

public List<String> getRoutes ()

Added in API level 1

Returns Forward Routes for VPN profile.

Returns
List<String> Forward Routes for VPN profile

public List<String> getSearchDomains ()

Added in API level 1

Returns DNS search domains.

Returns
List<String> DNS search domains

public String getServer ()

Added in API level 1

Returns VPN server IP address.

Returns
String VPN server IP address

public VpnProfileConfig.VpnType getType ()

Added in API level 1

Returns VPN Profile Type.

Returns
VpnProfileConfig.VpnType VPN Profile Type

public String getUsername ()

Added in API level 1

Returns VPN Profile user name.

Returns
String VPN Profile user name

public boolean isMppe ()

Added in API level 1

Checks whether Microsoft Point-to-Point Encryption is enabled.

Returns
boolean whether Microsoft Point-to-Point Encryption is enabled or not

public void setDnsServers (List<String> dnsServers)

Added in API level 1

Sets DNS server addresses for VPN profile.

Parameters
dnsServers List: DNS server addresses for VPN profile

public void setIpsecCaCert (String ipsecCaCert)

Added in API level 1

Sets alias of CA Certificate for L2TP-IPsec type VPN profile.

Parameters
ipsecCaCert String: alias of CA Certificate for L2TP-IPsec type VPN profile.

public void setIpsecIdentifier (String ipsecIdentifier)

Added in API level 1

Sets VPN profile IpSec identifier

Parameters
ipsecIdentifier String: VPN profile IpSec identifier

public void setIpsecSecret (String ipsecSecret)

Added in API level 1

Sets VPN profile IpSec secret.

Parameters
ipsecSecret String: VPN profile IpSec secret.

public void setIpsecServerCert (String ipsecServerCert)

Added in API level 1

Sets IPsec Server Certificate alias.

Parameters
ipsecServerCert String: IPsec Server Certificate alias

public void setIpsecUserCert (String ipsecUserCert)

Added in API level 1

Sets alias of User Certificate for L2TP-IPsec type VPN profile.

Parameters
ipsecUserCert String: alias of User Certificate for L2TP-IPsec type VPN profile.

public void setL2tpSecret (String l2tpSecret)

Added in API level 1

Sets VPN profile L2TP secret.

Parameters
l2tpSecret String: L2TP secret

public void setMppe (boolean mppe)

Added in API level 1

Enables Microsoft Point-to-Point Encryption.

Parameters
mppe boolean: Microsoft Point-to-Point Encryption enable flag

public void setName (String name)

Added in API level 1

Sets VPN Profile name. This is the name shown in VPN Settings Dialog. It is used to identify VPN Profile and it must be unique on the device.

Parameters
name String: VPN Profile name

public void setPassword (String password)

Added in API level 1

Sets VPN Profile user password.

Parameters
password String: VPN Profile user password

public void setRoutes (List<String> routes)

Added in API level 1

Sets Forward Routes for VPN profile.

Parameters
routes List: Forward Routes for VPN profile

public void setSearchDomains (List<String> searchDomains)

Added in API level 1

Sets DNS search domains.

Parameters
searchDomains List: DNS search domains

public void setServer (String server)

Added in API level 1

Sets VPN server IP address.

Parameters
server String: VPN server IP address

public void setType (VpnProfileConfig.VpnType type)

Added in API level 1

Sets VPN Profile Type.

Parameters
type VpnProfileConfig.VpnType: VPN Profile Type

public void setUsername (String username)

Added in API level 1

Sets VPN Profile user name.

Parameters
username String: VPN Profile user name

public void writeToParcel (Parcel dest, int flags)

Added in API level 1

Parameters
dest Parcel
flags int