Added class to move around VPN profiles in the Android App
authorTobias Brunner <tobias@strongswan.org>
Tue, 17 Jul 2012 16:40:30 +0000 (18:40 +0200)
committerTobias Brunner <tobias@strongswan.org>
Sat, 11 Aug 2012 13:10:33 +0000 (15:10 +0200)
src/frontends/android/src/org/strongswan/android/data/VpnProfile.java [new file with mode: 0644]

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 (file)
index 0000000..8dc5f24
--- /dev/null
@@ -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;
+       }
+}