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)
Provides a hash for the given password.
|
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@NotNull String hashPassword(@NotNull String password) throws EncryptionException
password
- The unencrypted password.EncryptionException
- Failed to encrypt the passwordCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.