Package org.correomqtt.business.provider
Class SecretStoreProvider
- java.lang.Object
-
- org.correomqtt.business.provider.BaseUserFileProvider
-
- org.correomqtt.business.provider.SecretStoreProvider
-
public class SecretStoreProvider extends BaseUserFileProvider
-
-
Constructor Summary
Constructors Constructor Description SecretStoreProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencryptAndSavePasswords(String masterPassword)voidensurePasswordsAreDecrypted(String masterPassword)static SecretStoreProvidergetInstance()StringgetPassword(String masterPassword, ConnectionConfigDTO connection, ConnectionPasswordType type)voidmigratePasswordEncryption(String masterPassword)voidsetPassword(String masterPassword, ConnectionConfigDTO connection, ConnectionPasswordType type, String password)voidwipe()-
Methods inherited from class org.correomqtt.business.provider.BaseUserFileProvider
getFile, getTargetDirectoryPath, isLinux, isMacOS, isWindows
-
-
-
-
Method Detail
-
getInstance
public static SecretStoreProvider getInstance()
-
setPassword
public void setPassword(String masterPassword, ConnectionConfigDTO connection, ConnectionPasswordType type, String password) throws EncryptionRecoverableException
- Throws:
EncryptionRecoverableException
-
getPassword
public String getPassword(String masterPassword, ConnectionConfigDTO connection, ConnectionPasswordType type) throws EncryptionRecoverableException
- Throws:
EncryptionRecoverableException
-
encryptAndSavePasswords
public void encryptAndSavePasswords(String masterPassword) throws EncryptionRecoverableException
- Throws:
EncryptionRecoverableException
-
wipe
public void wipe()
-
ensurePasswordsAreDecrypted
public void ensurePasswordsAreDecrypted(String masterPassword) throws EncryptionRecoverableException
- Throws:
EncryptionRecoverableException
-
migratePasswordEncryption
public void migratePasswordEncryption(String masterPassword) throws EncryptionRecoverableException
- Throws:
EncryptionRecoverableException
-
-