Package step.plugins.encryptionmanager
Class EncryptionManagerImpl
- java.lang.Object
-
- step.plugins.encryptionmanager.EncryptionManagerImpl
-
- All Implemented Interfaces:
step.core.encryption.EncryptionManager
public class EncryptionManagerImpl extends Object implements step.core.encryption.EncryptionManager
-
-
Constructor Summary
Constructors Constructor Description EncryptionManagerImpl(File keyPairPath, Supplier<String> keyPairValidationStringSupplier, Consumer<String> keyPairValidationStringPersister)
EncryptionManagerImpl(File keyPairPath, Supplier<String> keyPairValidationStringSupplier, Consumer<String> keyPairValidationStringPersister, boolean ignoreKeyPairChange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decrypt(String encryptedValue)
String
encrypt(String value)
boolean
isFirstStart()
boolean
isKeyPairChanged()
-
-
-
Constructor Detail
-
EncryptionManagerImpl
public EncryptionManagerImpl(File keyPairPath, Supplier<String> keyPairValidationStringSupplier, Consumer<String> keyPairValidationStringPersister) throws step.core.encryption.EncryptionManagerException, step.core.encryption.UnknownKeyPairException, step.core.encryption.MissingKeyPairException
- Throws:
step.core.encryption.EncryptionManagerException
step.core.encryption.UnknownKeyPairException
step.core.encryption.MissingKeyPairException
-
EncryptionManagerImpl
public EncryptionManagerImpl(File keyPairPath, Supplier<String> keyPairValidationStringSupplier, Consumer<String> keyPairValidationStringPersister, boolean ignoreKeyPairChange) throws step.core.encryption.EncryptionManagerException, step.core.encryption.UnknownKeyPairException, step.core.encryption.MissingKeyPairException
- Throws:
step.core.encryption.EncryptionManagerException
step.core.encryption.UnknownKeyPairException
step.core.encryption.MissingKeyPairException
-
-
Method Detail
-
encrypt
public String encrypt(String value) throws step.core.encryption.EncryptionManagerException
- Specified by:
encrypt
in interfacestep.core.encryption.EncryptionManager
- Throws:
step.core.encryption.EncryptionManagerException
-
decrypt
public String decrypt(String encryptedValue) throws step.core.encryption.EncryptionManagerException
- Specified by:
decrypt
in interfacestep.core.encryption.EncryptionManager
- Throws:
step.core.encryption.EncryptionManagerException
-
isKeyPairChanged
public boolean isKeyPairChanged()
- Specified by:
isKeyPairChanged
in interfacestep.core.encryption.EncryptionManager
-
isFirstStart
public boolean isFirstStart()
- Specified by:
isFirstStart
in interfacestep.core.encryption.EncryptionManager
-
-