Package org.eblocker.server.http.backup
Class HttpsKeysBackupProvider
java.lang.Object
org.eblocker.server.http.backup.BackupProvider
org.eblocker.server.http.backup.HttpsKeysBackupProvider
Backup of HTTPS keys and certificates.
-
Field Summary
FieldsFields inherited from class org.eblocker.server.http.backup.BackupProvider
encryptionEnabled -
Constructor Summary
ConstructorsConstructorDescriptionHttpsKeysBackupProvider(SslService sslService, org.eblocker.crypto.CryptoService cryptoService) The provider has its own CryptoService because it does not use the @JsonEncrypt annotation. -
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
-
HTTPS_KEYS_ENTRY
- See Also:
-
-
Constructor Details
-
HttpsKeysBackupProvider
public HttpsKeysBackupProvider(SslService sslService, @Nullable org.eblocker.crypto.CryptoService cryptoService) The provider has its own CryptoService because it does not use the @JsonEncrypt annotation. So it does not call the super(cryptoService) constructor.- Parameters:
sslService-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
-