Package org.opennms.core.text.encryptor
Class TextEncryptorImpl
- java.lang.Object
-
- org.opennms.core.text.encryptor.TextEncryptorImpl
-
- All Implemented Interfaces:
TextEncryptor
public class TextEncryptorImpl extends Object implements TextEncryptor
-
-
Constructor Summary
Constructors Constructor Description TextEncryptorImpl(SecureCredentialsVault secureCredentialsVault)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decrypt(String alias, String encrypted)
Decrypt encrypted for the given contextString
encrypt(String alias, String text)
Encrypt text for the given context
-
-
-
Constructor Detail
-
TextEncryptorImpl
public TextEncryptorImpl(SecureCredentialsVault secureCredentialsVault)
-
-
Method Detail
-
encrypt
public String encrypt(String alias, String text)
Description copied from interface:TextEncryptor
Encrypt text for the given context- Specified by:
encrypt
in interfaceTextEncryptor
-
decrypt
public String decrypt(String alias, String encrypted)
Description copied from interface:TextEncryptor
Decrypt encrypted for the given context- Specified by:
decrypt
in interfaceTextEncryptor
-
-