2 * Copyright (C) 2016-2018 Tobias Brunner
3 * HSR Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 package org
.strongswan
.android
.utils
;
18 public final class Constants
21 * Intent action used to notify about changes to the VPN profiles
23 public static final String VPN_PROFILES_CHANGED
= "org.strongswan.android.VPN_PROFILES_CHANGED";
26 * Used in the intent above to notify about edits or inserts of a VPN profile (long)
28 public static final String VPN_PROFILES_SINGLE
= "org.strongswan.android.VPN_PROFILES_SINGLE";
31 * Used in the intent above to notify about the deletion of multiple VPN profiles (array of longs)
33 public static final String VPN_PROFILES_MULTIPLE
= "org.strongswan.android.VPN_PROFILES_MULTIPLE";
38 public static final int MTU_MAX
= 1500;
39 public static final int MTU_MIN
= 1280;
42 * Limits for NAT-T keepalive
44 public static final int NAT_KEEPALIVE_MAX
= 120;
45 public static final int NAT_KEEPALIVE_MIN
= 10;
48 * Preference key for default VPN profile
50 public static final String PREF_DEFAULT_VPN_PROFILE
= "pref_default_vpn_profile";
53 * Value used to signify that the most recently used profile should be used as default
55 public static final String PREF_DEFAULT_VPN_PROFILE_MRU
= "pref_default_vpn_profile_mru";
58 * Preference key to store the most recently used VPN profile
60 public static final String PREF_MRU_VPN_PROFILE
= "pref_mru_vpn_profile";