]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/frontends/android/app/src/main/java/org/strongswan/android/utils/Constants.java
Merge branch 'android-updates'
[thirdparty/strongswan.git] / src / frontends / android / app / src / main / java / org / strongswan / android / utils / Constants.java
1 /*
2 * Copyright (C) 2016-2018 Tobias Brunner
3 * HSR Hochschule fuer Technik Rapperswil
4 *
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>.
9 *
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
13 * for more details.
14 */
15
16 package org.strongswan.android.utils;
17
18 public final class Constants
19 {
20 /**
21 * Intent action used to notify about changes to the VPN profiles
22 */
23 public static final String VPN_PROFILES_CHANGED = "org.strongswan.android.VPN_PROFILES_CHANGED";
24
25 /**
26 * Used in the intent above to notify about edits or inserts of a VPN profile (long)
27 */
28 public static final String VPN_PROFILES_SINGLE = "org.strongswan.android.VPN_PROFILES_SINGLE";
29
30 /**
31 * Used in the intent above to notify about the deletion of multiple VPN profiles (array of longs)
32 */
33 public static final String VPN_PROFILES_MULTIPLE = "org.strongswan.android.VPN_PROFILES_MULTIPLE";
34
35 /**
36 * Limits for MTU
37 */
38 public static final int MTU_MAX = 1500;
39 public static final int MTU_MIN = 1280;
40
41 /**
42 * Limits for NAT-T keepalive
43 */
44 public static final int NAT_KEEPALIVE_MAX = 120;
45 public static final int NAT_KEEPALIVE_MIN = 10;
46
47 /**
48 * Preference key for default VPN profile
49 */
50 public static final String PREF_DEFAULT_VPN_PROFILE = "pref_default_vpn_profile";
51
52 /**
53 * Value used to signify that the most recently used profile should be used as default
54 */
55 public static final String PREF_DEFAULT_VPN_PROFILE_MRU = "pref_default_vpn_profile_mru";
56
57 /**
58 * Preference key to store the most recently used VPN profile
59 */
60 public static final String PREF_MRU_VPN_PROFILE = "pref_mru_vpn_profile";
61 }