Class OpenVpnProfile
java.lang.Object
org.eblocker.server.common.data.openvpn.OpenVpnProfile
- All Implemented Interfaces:
VpnProfile
VpnProfile implementation for OpenVPN Client instances
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the description for this VPN ProfilegetId()Get the unique ID of this VpnProfile (which will also be used as the marker for the IP packets in the iptables mangle table)Get the login credentials for this VPN account (if needed)getName()Get the name of this VPN ProfileinthashCode()booleanbooleanGet the client config filebooleanbooleanvoidsetConfigurationFileVersion(Integer configurationFileVersion) voidsetDeleted(boolean deleted) voidsetDescription(String desc) Set the description of this VPN client profile (or the server)voidsetEnabled(boolean enabled) voidvoidsetKeepAliveMode(KeepAliveMode keepAliveMode) voidsetKeepAlivePingTarget(String target) voidsetLoginCredentials(VpnLoginCredentials loginCredentials) Set the login credentials for this VPN client instancevoidSet the namevoidsetNameServersEnabled(boolean nameServersEnabled) voidsetTemporary(boolean temporary)
-
Constructor Details
-
OpenVpnProfile
public OpenVpnProfile() -
OpenVpnProfile
-
-
Method Details
-
getId
Description copied from interface:VpnProfileGet the unique ID of this VpnProfile (which will also be used as the marker for the IP packets in the iptables mangle table)- Specified by:
getIdin interfaceVpnProfile- Returns:
-
setId
-
getName
Description copied from interface:VpnProfileGet the name of this VPN Profile- Specified by:
getNamein interfaceVpnProfile- Returns:
-
setName
Description copied from interface:VpnProfileSet the name- Specified by:
setNamein interfaceVpnProfile
-
getDescription
Description copied from interface:VpnProfileGet the description for this VPN Profile- Specified by:
getDescriptionin interfaceVpnProfile- Returns:
-
setDescription
Description copied from interface:VpnProfileSet the description of this VPN client profile (or the server)- Specified by:
setDescriptionin interfaceVpnProfile
-
isEnabled
public boolean isEnabled()Description copied from interface:VpnProfileGet the client config file- Specified by:
isEnabledin interfaceVpnProfile- Returns:
- client config file if available, otherwise null
File getConfigFile();
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceVpnProfile
-
isNameServersEnabled
public boolean isNameServersEnabled()- Specified by:
isNameServersEnabledin interfaceVpnProfile
-
setNameServersEnabled
public void setNameServersEnabled(boolean nameServersEnabled) - Specified by:
setNameServersEnabledin interfaceVpnProfile
-
isTemporary
public boolean isTemporary()- Specified by:
isTemporaryin interfaceVpnProfile
-
setTemporary
public void setTemporary(boolean temporary) - Specified by:
setTemporaryin interfaceVpnProfile
-
isDeleted
public boolean isDeleted()- Specified by:
isDeletedin interfaceVpnProfile
-
setDeleted
public void setDeleted(boolean deleted) - Specified by:
setDeletedin interfaceVpnProfile
-
getKeepAliveMode
- Specified by:
getKeepAliveModein interfaceVpnProfile
-
setKeepAliveMode
- Specified by:
setKeepAliveModein interfaceVpnProfile
-
getKeepAlivePingTarget
- Specified by:
getKeepAlivePingTargetin interfaceVpnProfile
-
setKeepAlivePingTarget
- Specified by:
setKeepAlivePingTargetin interfaceVpnProfile
-
getLoginCredentials
Description copied from interface:VpnProfileGet the login credentials for this VPN account (if needed)- Specified by:
getLoginCredentialsin interfaceVpnProfile- Returns:
- login credentials container, null if they are not needed
-
setLoginCredentials
Description copied from interface:VpnProfileSet the login credentials for this VPN client instance- Specified by:
setLoginCredentialsin interfaceVpnProfile
-
hashCode
public int hashCode() -
equals
-
getConfigurationFileVersion
-
setConfigurationFileVersion
-