Added class to move around VPN profiles in the Android App
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user