- java.lang.Object
-
- com.pervasive.datarush.encryption.DefaultEncryptionProvider
-
- All Implemented Interfaces:
EncryptionProvider
public final class DefaultEncryptionProvider extends Object implements EncryptionProvider
The default encryption provider. This provides a basic level of encryption for sensitive data using a hard-coded key.
-
-
Constructor Summary
Constructors Constructor Description DefaultEncryptionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecrypt(String string)Decrypts a given string.Stringencrypt(String string)Encrypts the given string.StringgetProviderID()Returns a unique identifier for this provider
-
-
-
Field Detail
-
ID
public static final String ID
The default encryption provider ID: "default"- See Also:
- Constant Field Values
-
-
Method Detail
-
getProviderID
public String getProviderID()
Description copied from interface:EncryptionProviderReturns a unique identifier for this provider- Specified by:
getProviderIDin interfaceEncryptionProvider- Returns:
- the unique identifer for this provider
-
encrypt
public String encrypt(String string)
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
public String decrypt(String string)
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
-
-