/** * Creates a new instance that will use the given passphrase for all encryption/decryption activities. * * @param passphrase the passphrase to encrypt/decrypt the credentials with * @return the new instance */ public static CredentialsEncryptor withPassphrase(char[] passphrase) { Encryption encryption = Encryption.createEncryption(passphrase); return new CredentialsEncryptor(encryption); }
/** * Creates a new instance that will use the given passphrase for all encryption/decryption activities. * * @param passphrase the passphrase to encrypt/decrypt the credentials with * @return the new instance */ public static CredentialsEncryptor withPassphrase(char[] passphrase) { Encryption encryption = Encryption.createEncryption(passphrase); return new CredentialsEncryptor(encryption); }