public class

VpnConfigInfo

extends Object
implements Parcelable
java.lang.Object
   ↳ com.htc.app.admin.VpnConfigInfo

Summary

Constants
int TYPE_IPSEC_HYBRID_RSA To sepecify the VPN configuration type as Hybrid IPSec with RSA encryption.
int TYPE_IPSEC_XAUTH_PSK To sepecify the VPN configuration type as Xauthority IPSec with PSK encryption.
int TYPE_IPSEC_XAUTH_RSA To sepecify the VPN configuration type as Xauthority IPSec with RSA encryption.
int TYPE_L2TP_IPSEC_PSK To sepecify the VPN configuration type as L2TP IPSec with PSK encryption.
int TYPE_L2TP_IPSEC_RSA To sepecify the VPN configuration type as L2TP IPSec with RSA encryption.
int TYPE_MAX The maximun number of supported types.
int TYPE_PPTP To sepecify the VPN configuration type as PPTP.
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<VpnConfigInfo> CREATOR
Public Constructors
VpnConfigInfo()
Public Methods
int describeContents()
String getConfigId()
Get VPN config ID.
String getDnsServers()
Get DNS servers.
String getIpsecCaCert()
Get IPSec CA certification.
String getIpsecIdentifier()
Get IPSec identifier.
String getIpsecUserCert()
Get IPSec user certification.
String getL2tpSecret()
Get L2TP Secret.
boolean getPPPencryption()
Return true if the PPP encryption enabled; return false if disabled.
String getPassword()
Get user's password.
String getRoutes()
Get the address of routes.
String getSearchDomains()
Get search domains.
String getServerAddress()
Get the server address.
String getUsername()
Get the user name.
String getVpnName()
Get the name of VPN.
int getVpnType()
Get the type of VPN.
String gsetIPSecPreSharedkey()
Get IPSec pre-shared Key.
void setConfigId(String configId)
Set VPN config ID.
void setDnsServers(String dnsServers)
Set DNS servers.
void setIPSecPreSharedkey(String ipsecSecret)
Set IPSec pre-shared Key.
void setIPSec_HybridRSK_VPN(String vpnName, String serverAddress, String ipsecCaCert)
set exta option for IPSec Hybrid RSA VPN type
void setIPSec_XauthPSK_VPN(String vpnName, String serverAddress, String ipsecIdentifier, String IPSecPreSharedKey)
set exta option for IPSec Xauth PSK VPN type
void setIPSec_XauthRSK_VPN(String vpnName, String serverAddress, String ipsecUserCert, String ipsecCaCert)
set exta option for IPSec Xauth RSK VPN type
void setIpsecCaCert(String ipsecCaCert)
Set IPSec CA certification.
void setIpsecIdentifier(String ipsecIdentifier)
Set IPSec identifier.
void setIpsecUserCert(String ipsecUserCert)
Set IPSec user certification.
void setL2TP_IPSecPSK_VPN(String vpnName, String serverAddress, String l2tpSecret, String ipsecIdentifier, String IPSecPreSharedKey)
set exta option for L2TP/IPSec PSK VPN type
void setL2TP_IPSecRSK_VPN(String vpnName, String serverAddress, String l2tpSecret, String ipsecUserCert, String ipsecCaCert)
set exta option for L2TP/IPSec RSK VPN type
void setL2tpSecret(String l2tpSecret)
Set L2TP Secret.
void setPPPencryption(boolean useMPPE)
Enable or disable PPP encryption.
void setPPTP_VPN(String vpnName, String serverAddress, boolean usePPPencryption)
set exta option for PPTP VPN type
void setPassword(String password)
Set user's password.
void setRoutes(String routes)
Set the address of routes.
void setSearchDomains(String searchDomains)
Set search domains.
void setServerAddress(String serverAddress)
Set the server address.
void setUsername(String userName)
Set the user name.
void setVpnName(String vpnName)
Set the name of VPN.
void setVpnOption(String searchDomains, String dnsServers, String fowardRoutes)
set VPN option
void setVpnType(int vpnType)
Set the type of VPN.
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int TYPE_IPSEC_HYBRID_RSA

To sepecify the VPN configuration type as Hybrid IPSec with RSA encryption.

Constant Value: 5 (0x00000005)

public static final int TYPE_IPSEC_XAUTH_PSK

To sepecify the VPN configuration type as Xauthority IPSec with PSK encryption.

Constant Value: 3 (0x00000003)

public static final int TYPE_IPSEC_XAUTH_RSA

To sepecify the VPN configuration type as Xauthority IPSec with RSA encryption.

Constant Value: 4 (0x00000004)

public static final int TYPE_L2TP_IPSEC_PSK

To sepecify the VPN configuration type as L2TP IPSec with PSK encryption.

Constant Value: 1 (0x00000001)

public static final int TYPE_L2TP_IPSEC_RSA

To sepecify the VPN configuration type as L2TP IPSec with RSA encryption.

Constant Value: 2 (0x00000002)

public static final int TYPE_MAX

The maximun number of supported types.

Constant Value: 6 (0x00000006)

public static final int TYPE_PPTP

To sepecify the VPN configuration type as PPTP.

Constant Value: 0 (0x00000000)

Fields

public static final Creator<VpnConfigInfo> CREATOR

Public Constructors

public VpnConfigInfo ()

Public Methods

public int describeContents ()

public String getConfigId ()

Get VPN config ID.

Returns
  • The VPN config ID.

public String getDnsServers ()

Get DNS servers.

Returns
  • The DNS servers address.

public String getIpsecCaCert ()

Get IPSec CA certification.

Returns
  • IPSec CA certification.

public String getIpsecIdentifier ()

Get IPSec identifier.

Returns
  • IPSec identifier.

public String getIpsecUserCert ()

Get IPSec user certification.

Returns
  • IPSec user certification.

public String getL2tpSecret ()

Get L2TP Secret.

Returns
  • L2TP secret.

public boolean getPPPencryption ()

Return true if the PPP encryption enabled; return false if disabled.

Returns
  • True to use PPP encryption; False to disable.

public String getPassword ()

Get user's password.

Returns
  • The user's password.

public String getRoutes ()

Get the address of routes.

Returns
  • The address of routes.

public String getSearchDomains ()

Get search domains.

Returns
  • The domains for searching.

public String getServerAddress ()

Get the server address.

Returns
  • The server address.

public String getUsername ()

Get the user name.

Returns
  • The user name.

public String getVpnName ()

Get the name of VPN.

Returns
  • The name of VPN config.

public int getVpnType ()

Get the type of VPN.

Returns
  • The type of VPN config.

public String gsetIPSecPreSharedkey ()

Get IPSec pre-shared Key.

Returns
  • Set IPSec pre-shared key.

public void setConfigId (String configId)

Set VPN config ID.

Parameters
configId The VPN config ID.

public void setDnsServers (String dnsServers)

Set DNS servers.

Parameters
dnsServers The DNS servers address.

public void setIPSecPreSharedkey (String ipsecSecret)

Set IPSec pre-shared Key.

Parameters
ipsecSecret Set IPSec pre-shared key.

public void setIPSec_HybridRSK_VPN (String vpnName, String serverAddress, String ipsecCaCert)

set exta option for IPSec Hybrid RSA VPN type

Parameters
vpnName vpn name
serverAddress vpn server address
ipsecCaCert IPSec CA certificate

public void setIPSec_XauthPSK_VPN (String vpnName, String serverAddress, String ipsecIdentifier, String IPSecPreSharedKey)

set exta option for IPSec Xauth PSK VPN type

Parameters
vpnName vpn name
serverAddress vpn server address
ipsecIdentifier IPSec identifier
IPSecPreSharedKey IPSec pre-shared key

public void setIPSec_XauthRSK_VPN (String vpnName, String serverAddress, String ipsecUserCert, String ipsecCaCert)

set exta option for IPSec Xauth RSK VPN type

Parameters
vpnName vpn name
serverAddress vpn server address
ipsecUserCert IPSec user certificate
ipsecCaCert IPSec CA certificate

public void setIpsecCaCert (String ipsecCaCert)

Set IPSec CA certification.

Parameters
ipsecCaCert IPSec CA certification.

public void setIpsecIdentifier (String ipsecIdentifier)

Set IPSec identifier.

Parameters
ipsecIdentifier IPSec identifier.

public void setIpsecUserCert (String ipsecUserCert)

Set IPSec user certification.

Parameters
ipsecUserCert IPSec user certification.

public void setL2TP_IPSecPSK_VPN (String vpnName, String serverAddress, String l2tpSecret, String ipsecIdentifier, String IPSecPreSharedKey)

set exta option for L2TP/IPSec PSK VPN type

Parameters
vpnName vpn name
serverAddress vpn server address
l2tpSecret L2TP secret
ipsecIdentifier IPSec identifier
IPSecPreSharedKey IPSec pre-shared key

public void setL2TP_IPSecRSK_VPN (String vpnName, String serverAddress, String l2tpSecret, String ipsecUserCert, String ipsecCaCert)

set exta option for L2TP/IPSec RSK VPN type

Parameters
vpnName vpn name
serverAddress vpn server address
l2tpSecret L2TP secret
ipsecUserCert IPSec user certificate
ipsecCaCert IPSec CA certificate

public void setL2tpSecret (String l2tpSecret)

Set L2TP Secret.

Parameters
l2tpSecret L2TP secret.

public void setPPPencryption (boolean useMPPE)

Enable or disable PPP encryption.

Parameters
useMPPE True to use PPP encryption; False to disable.

public void setPPTP_VPN (String vpnName, String serverAddress, boolean usePPPencryption)

set exta option for PPTP VPN type

Parameters
vpnName vpn name
serverAddress vpn server address
usePPPencryption use ppp encryption(MPPE)

public void setPassword (String password)

Set user's password.

Parameters
password The user's password.

public void setRoutes (String routes)

Set the address of routes.

Parameters
routes The address of routes.

public void setSearchDomains (String searchDomains)

Set search domains.

Parameters
searchDomains The domains for searching.

public void setServerAddress (String serverAddress)

Set the server address.

Parameters
serverAddress The server address.

public void setUsername (String userName)

Set the user name.

Parameters
userName The user name.

public void setVpnName (String vpnName)

Set the name of VPN.

Parameters
vpnName The name of VPN config.

public void setVpnOption (String searchDomains, String dnsServers, String fowardRoutes)

set VPN option

Parameters
searchDomains search domains
dnsServers DNS server
fowardRoutes fowarding Routes

public void setVpnType (int vpnType)

Set the type of VPN.

Parameters
vpnType The type of VPN config.

public String toString ()

Since: API Level

public void writeToParcel (Parcel dest, int flags)