java.lang.Object
com.pervasive.datarush.encryption.ClearTextEncryptionProvider
- All Implemented Interfaces:
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 the
currentEncryptor.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ID
The provider id: "notencrypted"- See Also:
-
-
Constructor Details
-
ClearTextEncryptionProvider
public ClearTextEncryptionProvider()
-
-
Method Details
-
getProviderID
Description copied from interface:EncryptionProviderReturns a unique identifier for this provider- Specified by:
getProviderIDin interfaceEncryptionProvider- Returns:
- the unique identifer for this provider
-
encrypt
Description copied from interface:EncryptionProviderEncrypts the given string. The encrypted form may consist of any string format.- Specified by:
encryptin interfaceEncryptionProvider- Parameters:
string- the clear text- Returns:
- the encrypted text
-
decrypt
Description copied from interface:EncryptionProviderDecrypts a given string. This method must be able to decrypt any string produced byEncryptionProvider.encrypt(String).- Specified by:
decryptin interfaceEncryptionProvider- Parameters:
string- the string to decrypt- Returns:
- the clear text
-