Class OpenVpnProfileFiles
java.lang.Object
org.eblocker.server.common.openvpn.OpenVpnProfileFiles
-
Constructor Summary
ConstructorsConstructorDescriptionOpenVpnProfileFiles(String profilesPath, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateProfileDirectory(int id) getConfig(int id) getCredentials(int id) getDirectory(int id) getLogFile(int id) getOptionFile(int id, String option) getParsedConfiguration(int id) booleanhasParsedConfiguration(int id) byte[]readConfigOptionFile(int id, String option) readLogFile(int id) readParsedConfiguration(int id) readParsedConfigurationVersion0(int id) voidremoveProfileDirectory(int id) voidtruncateLogFile(int id) voidwriteConfigFile(int id, List<Option> options) voidwriteConfigOptionFile(int id, String option, byte[] content) voidwriteParsedConfiguration(int id, OpenVpnConfiguration configuration) writeTransientCredentialsFile(VpnProfile vpnProfile)
-
Constructor Details
-
OpenVpnProfileFiles
@Inject public OpenVpnProfileFiles(String profilesPath, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getProfilesPath
-
getDirectory
-
getParsedConfiguration
-
getConfig
-
getOptionFile
-
getCredentials
-
getLogFile
-
createProfileDirectory
- Throws:
IOException
-
removeProfileDirectory
- Throws:
IOException
-
hasParsedConfiguration
public boolean hasParsedConfiguration(int id) -
readParsedConfiguration
- Throws:
IOException
-
readParsedConfigurationVersion0
- Throws:
IOException
-
writeParsedConfiguration
- Throws:
IOException
-
writeConfigFile
- Throws:
FileNotFoundException
-
writeConfigOptionFile
- Throws:
IOException
-
readConfigOptionFile
- Throws:
IOException
-
writeTransientCredentialsFile
-
readLogFile
- Throws:
IOException
-
truncateLogFile
- Throws:
IOException
-