aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frontends/android/src/org/strongswan/android/data/VpnProfile.java90
1 files changed, 90 insertions, 0 deletions
diff --git a/src/frontends/android/src/org/strongswan/android/data/VpnProfile.java b/src/frontends/android/src/org/strongswan/android/data/VpnProfile.java
new file mode 100644
index 000000000..8dc5f2499
--- /dev/null
+++ b/src/frontends/android/src/org/strongswan/android/data/VpnProfile.java
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2012 Tobias Brunner
+ * Copyright (C) 2012 Giuliano Grassi
+ * Copyright (C) 2012 Ralf Sager
+ * Hochschule fuer Technik Rapperswil
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ */
+
+package org.strongswan.android.data;
+
+public class VpnProfile
+{
+ private String mName, mGateway, mUsername, mPassword, mCertificate;
+ private long mId = -1;
+
+ public long getId()
+ {
+ return mId;
+ }
+
+ public void setId(long id)
+ {
+ this.mId = id;
+ }
+
+ public String getName()
+ {
+ return mName;
+ }
+
+ public void setName(String name)
+ {
+ this.mName = name;
+ }
+
+ public String getGateway()
+ {
+ return mGateway;
+ }
+
+ public void setGateway(String gateway)
+ {
+ this.mGateway = gateway;
+ }
+
+ public String getUsername()
+ {
+ return mUsername;
+ }
+
+ public void setUsername(String username)
+ {
+ this.mUsername = username;
+ }
+
+ public String getPassword()
+ {
+ return mPassword;
+ }
+
+ public void setPassword(String password)
+ {
+ this.mPassword = password;
+ }
+
+ public String getCertificateAlias()
+ {
+ return mCertificate;
+ }
+
+ public void setCertificateAlias(String certificate)
+ {
+ this.mCertificate = certificate;
+ }
+
+ @Override
+ public String toString()
+ {
+ return mName;
+ }
+}