Encrypts/decrypts credentials through password-based encryption.
| Type | Name and description |
|---|---|
java.lang.String |
decrypt(java.lang.String string)Decrypts the given string. |
java.lang.String |
encrypt(java.lang.String string)Encrypts the given string. |
static CredentialsEncryptor |
withPassphrase(char[] passphrase)Creates a new instance that will use the given passphrase for all encryption/decryption activities. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Decrypts the given string.
string - the string to decryptEncrypts the given string.
string - the string to encryptCreates a new instance that will use the given passphrase for all encryption/decryption activities.
passphrase - the passphrase to encrypt/decrypt the credentials with