public class MigratingEncryptionService extends Object implements EncryptionService
ENCRYPTED_PRIVATE_KEY_PREFIX
Constructor and Description |
---|
MigratingEncryptionService(SecretEncryptionService secretEncryptionService) |
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 data)
Set of complementary methods
EncryptionService.encrypt(String) and EncryptionService.decrypt(String) provide means
to obfuscate sensitive data. |
@Inject public MigratingEncryptionService(SecretEncryptionService secretEncryptionService)
@NotNull public String encrypt(@Nullable String data) throws EncryptionException
EncryptionService
EncryptionService.encrypt(String)
and EncryptionService.decrypt(String)
provide means
to obfuscate sensitive data.encrypt
in interface EncryptionService
data
- string to be encryptedEncryptionException
- when encryption failed@NotNull public String decrypt(@Nullable String data) throws EncryptionException
EncryptionService
EncryptionService.encrypt(String)
and EncryptionService.decrypt(String)
provide means
to obfuscate sensitive data.decrypt
in interface EncryptionService
data
- string to be decryptedEncryptionException
- when decryption failedCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.