Package com.atlassian.bamboo.security
Class MigratingEncryptionService
- java.lang.Object
-
- com.atlassian.bamboo.security.MigratingEncryptionService
-
- All Implemented Interfaces:
EncryptionService
public class MigratingEncryptionService extends Object implements EncryptionService
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.security.EncryptionService
ENCRYPTED_PRIVATE_KEY_PREFIX
-
-
Constructor Summary
Constructors Constructor Description MigratingEncryptionService(SecretEncryptionService secretEncryptionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull String
decrypt(@Nullable String data)
Set of complementary methodsEncryptionService.encrypt(String)
andEncryptionService.decrypt(String)
provide means to obfuscate sensitive data.@NotNull String
encrypt(@Nullable String data)
Set of complementary methodsEncryptionService.encrypt(String)
andEncryptionService.decrypt(String)
provide means to obfuscate sensitive data.
-
-
-
Constructor Detail
-
MigratingEncryptionService
@Inject public MigratingEncryptionService(SecretEncryptionService secretEncryptionService)
-
-
Method Detail
-
encrypt
@NotNull public @NotNull String encrypt(@Nullable @Nullable String data) throws EncryptionException
Description copied from interface:EncryptionService
Set of complementary methodsEncryptionService.encrypt(String)
andEncryptionService.decrypt(String)
provide means to obfuscate sensitive data.- Specified by:
encrypt
in interfaceEncryptionService
- Parameters:
data
- string to be encrypted- Returns:
- encrypted string
- Throws:
EncryptionException
- when encryption failed
-
decrypt
@NotNull public @NotNull String decrypt(@Nullable @Nullable String data) throws EncryptionException
Description copied from interface:EncryptionService
Set of complementary methodsEncryptionService.encrypt(String)
andEncryptionService.decrypt(String)
provide means to obfuscate sensitive data.- Specified by:
decrypt
in interfaceEncryptionService
- Parameters:
data
- string to be decrypted- Returns:
- decrypted string
- Throws:
EncryptionException
- when decryption failed
-
-