diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-07-17 18:40:30 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-08-11 15:10:33 +0200 |
commit | 3d9127da61022f59e2ef975c4b5f4ecec012811c (patch) | |
tree | f50d74480ebf2c6d1c0f785896adf5349843ff10 /src | |
parent | b17b495f2e633caaecf6c47f937a3e2cf3070e35 (diff) | |
download | strongswan-3d9127da61022f59e2ef975c4b5f4ecec012811c.tar.bz2 strongswan-3d9127da61022f59e2ef975c4b5f4ecec012811c.tar.xz |
Added class to move around VPN profiles in the Android App
Diffstat (limited to 'src')
-rw-r--r-- | src/frontends/android/src/org/strongswan/android/data/VpnProfile.java | 90 |
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; + } +} |