- java.lang.Object
-
- com.pervasive.datarush.encryption.ClearTextEncryptionProvider
-
- All Implemented Interfaces:
EncryptionProvider
public final class ClearTextEncryptionProvider extends Object implements EncryptionProvider
An "non-encrypting" encryption provider. The use case for this provider is to provide users with a way to hand-edit their JSON credentials files. They may set the provider ID to "notencrypted" and then specify a clear-text password. This is not intended to every be set as thecurrentEncryptor
.
-
-
Constructor Summary
Constructors Constructor Description ClearTextEncryptionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decrypt(String string)
Decrypts a given string.String
encrypt(String string)
Encrypts the given string.String
getProviderID()
Returns a unique identifier for this provider
-
-
-
Field Detail
-
ID
public static final String ID
The provider id: "notencrypted"- See Also:
- Constant Field Values
-
-
Method Detail
-
getProviderID
public String getProviderID()
Description copied from interface:EncryptionProvider
Returns a unique identifier for this provider- Specified by:
getProviderID
in interfaceEncryptionProvider
- Returns:
- the unique identifer for this provider
-
encrypt
public String encrypt(String string)
Description copied from interface:EncryptionProvider
Encrypts the given string. The encrypted form may consist of any string format.- Specified by:
encrypt
in interfaceEncryptionProvider
- Parameters:
string
- the clear text- Returns:
- the encrypted text
-
decrypt
public String decrypt(String string)
Description copied from interface:EncryptionProvider
Decrypts a given string. This method must be able to decrypt any string produced byEncryptionProvider.encrypt(String)
.- Specified by:
decrypt
in interfaceEncryptionProvider
- Parameters:
string
- the string to decrypt- Returns:
- the clear text
-
-