public final class CredentialsEncryptor
extends java.lang.Object
Encryption| Modifier and Type | Method 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.
|
public java.lang.String encrypt(java.lang.String string)
string - the string to encryptpublic java.lang.String decrypt(java.lang.String string)
string - the string to decryptpublic static CredentialsEncryptor withPassphrase(char[] passphrase)
passphrase - the passphrase to encrypt/decrypt the credentials with