public class VpnConfig extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
List<LinkAddress> |
addresses |
boolean |
allowBypass |
List<String> |
allowedApplications |
boolean |
allowIPv4 |
boolean |
allowIPv6 |
boolean |
blocking |
PendingIntent |
configureIntent |
static Parcelable.Creator<VpnConfig> |
CREATOR |
static String |
DIALOGS_PACKAGE |
List<String> |
disallowedApplications |
List<String> |
dnsServers |
String |
interfaze |
boolean |
legacy |
static String |
LEGACY_VPN |
int |
mtu |
List<RouteInfo> |
routes |
List<String> |
searchDomains |
static String |
SERVICE_INTERFACE |
String |
session |
long |
startTime |
Network[] |
underlyingNetworks |
String |
user |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
VpnConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addLegacyAddresses(String addressesStr) |
void |
addLegacyRoutes(String routesStr) |
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
static Intent |
getIntentForConfirmation() |
static PendingIntent |
getIntentForStatusPanel(Context context)
NOTE: This should only be used for legacy VPN.
|
static CharSequence |
getVpnLabel(Context context,
String packageName) |
void |
updateAllowedFamilies(InetAddress address) |
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public static final String SERVICE_INTERFACE
public static final String DIALOGS_PACKAGE
public static final String LEGACY_VPN
public String user
public String interfaze
public String session
public int mtu
public List<LinkAddress> addresses
public PendingIntent configureIntent
public long startTime
public boolean legacy
public boolean blocking
public boolean allowBypass
public boolean allowIPv4
public boolean allowIPv6
public Network[] underlyingNetworks
public static final Parcelable.Creator<VpnConfig> CREATOR
public static Intent getIntentForConfirmation()
public static PendingIntent getIntentForStatusPanel(Context context)
public static CharSequence getVpnLabel(Context context, String packageName) throws PackageManager.NameNotFoundException
public void updateAllowedFamilies(InetAddress address)
public void addLegacyRoutes(String routesStr)
public void addLegacyAddresses(String addressesStr)
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
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
.