@ThreadSafe public class EncryptionServiceImpl extends Object implements EncryptionService
ENCRYPTED_PRIVATE_KEY_PREFIX| Constructor and Description |
|---|
EncryptionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String data)
Set of complementary methods
EncryptionService.encrypt(String) and EncryptionService.decrypt(String) provide means
to obfuscate sensitive data. |
String |
encrypt(String stringToEncrypt)
Set of complementary methods
EncryptionService.encrypt(String) and EncryptionService.decrypt(String) provide means
to obfuscate sensitive data. |
String |
hashPassword(String password)
Provides a hash for the given password.
|
public EncryptionServiceImpl()
throws EncryptionException
EncryptionException@NotNull public String encrypt(@Nullable String stringToEncrypt) throws EncryptionException
EncryptionServiceEncryptionService.encrypt(String) and EncryptionService.decrypt(String) provide means
to obfuscate sensitive data.encrypt in interface EncryptionServicestringToEncrypt - string to be encryptedEncryptionException - when encryption failed@NotNull public String decrypt(@Nullable String data) throws EncryptionException
EncryptionServiceEncryptionService.encrypt(String) and EncryptionService.decrypt(String) provide means
to obfuscate sensitive data.decrypt in interface EncryptionServicedata - string to be decryptedEncryptionException - when decryption failed@NotNull public String hashPassword(@NotNull String password) throws EncryptionException
EncryptionServicehashPassword in interface EncryptionServicepassword - The unencrypted password.EncryptionException - Failed to encrypt the passwordCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.