Package org.eblocker.server.http.backup
Class OpenVpnServerBackupProvider
java.lang.Object
org.eblocker.server.http.backup.BackupProvider
org.eblocker.server.http.backup.OpenVpnServerBackupProvider
Backs up and restores eBlocker Mobile settings for OpenVPN.
-
Field Summary
FieldsFields inherited from class org.eblocker.server.http.backup.BackupProvider
encryptionEnabled -
Constructor Summary
ConstructorsConstructorDescriptionOpenVpnServerBackupProvider(OpenVpnServerService service, OpenVpnCa ca, String openVpnServerPath, String caPath, org.eblocker.crypto.CryptoService cryptoService) -
Method Summary
Modifier and TypeMethodDescriptionvoidexportConfiguration(JarOutputStream outputStream) Export the configuration to the given JarOutputStream.voidimportConfiguration(JarInputStream inputStream, int schemaVersion) Import the configuration from the given JarInputStream.voidverifyConfiguration(JarInputStream inputStream, int schemaVersion) Verify the configuration from the given JarInputStream.Methods inherited from class org.eblocker.server.http.backup.BackupProvider
addWarning, canDecrypt, canEncrypt, getNextEntry, getWarnings, writeNextEntry
-
Field Details
-
OPENVPN_SERVER_ENTRY
- See Also:
-
SHARED_SECRET_FILE_NAME
- See Also:
-
-
Constructor Details
-
OpenVpnServerBackupProvider
public OpenVpnServerBackupProvider(OpenVpnServerService service, OpenVpnCa ca, String openVpnServerPath, String caPath, @Nullable org.eblocker.crypto.CryptoService cryptoService)
-
-
Method Details
-
exportConfiguration
Description copied from class:BackupProviderExport the configuration to the given JarOutputStream.- Specified by:
exportConfigurationin classBackupProvider- Throws:
IOException
-
importConfiguration
Description copied from class:BackupProviderImport the configuration from the given JarInputStream.- Specified by:
importConfigurationin classBackupProvider- Throws:
IOException
-
verifyConfiguration
Description copied from class:BackupProviderVerify the configuration from the given JarInputStream.- Specified by:
verifyConfigurationin classBackupProvider- Throws:
IOException
-