|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnu.studer.gradle.credentials.domain.CredentialsEncryptor
public final class CredentialsEncryptor
Encrypts/decrypts credentials through password-based encryption.
| Method Summary | |
|---|---|
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 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() |
| Method Detail |
|---|
public java.lang.String decrypt(java.lang.String string)
string - the string to decrypt
public java.lang.String encrypt(java.lang.String string)
string - the string to encrypt
public static CredentialsEncryptor withPassphrase(char[] passphrase)
passphrase - the passphrase to encrypt/decrypt the credentials with
Groovy Documentation