public interface EncryptionService
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCRYPTED_PRIVATE_KEY_PREFIX
"-----BEG" (that's how most private keys start) after encryption starts with this value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String data)
Set of complementary methods
encrypt(String) and decrypt(String) provide means
to obfuscate sensitive data. |
String |
encrypt(String data)
Set of complementary methods
encrypt(String) and decrypt(String) provide means
to obfuscate sensitive data. |
String |
hashPassword(String password)
Deprecated.
since 5.10, use
PasswordEncryptor.encrypt(String) |
static final String ENCRYPTED_PRIVATE_KEY_PREFIX
@NotNull String encrypt(@Nullable String data) throws EncryptionException
encrypt(String) and decrypt(String) provide means
to obfuscate sensitive data.data - string to be encryptedEncryptionException - when encryption failed@NotNull String decrypt(@Nullable String data) throws EncryptionException
encrypt(String) and decrypt(String) provide means
to obfuscate sensitive data.data - string to be decryptedEncryptionException - when decryption failed@Deprecated @NotNull String hashPassword(@NotNull String password) throws EncryptionException
PasswordEncryptor.encrypt(String)password - The unencrypted password.EncryptionException - Failed to encrypt the passwordCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.