Package com.atlassian.bamboo.security
Interface EncryptionService
-
- All Known Implementing Classes:
EncryptionServiceImpl
,MigratingEncryptionService
@Deprecated public interface EncryptionService
Deprecated.since 5.15 without replacement
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENCRYPTED_PRIVATE_KEY_PREFIX
Deprecated."-----BEG" (that's how most private keys start) after encryption starts with this value.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @NotNull String
decrypt(@Nullable String data)
Deprecated.Set of complementary methodsencrypt(String)
anddecrypt(String)
provide means to obfuscate sensitive data.@NotNull String
encrypt(@Nullable String data)
Deprecated.Set of complementary methodsencrypt(String)
anddecrypt(String)
provide means to obfuscate sensitive data.
-
-
-
Field Detail
-
ENCRYPTED_PRIVATE_KEY_PREFIX
static final String ENCRYPTED_PRIVATE_KEY_PREFIX
Deprecated."-----BEG" (that's how most private keys start) after encryption starts with this value. It can be used to detect encrypted private key later.
-
-
Method Detail
-
encrypt
@NotNull @NotNull String encrypt(@Nullable @Nullable String data) throws EncryptionException
Deprecated.Set of complementary methodsencrypt(String)
anddecrypt(String)
provide means to obfuscate sensitive data.- Parameters:
data
- string to be encrypted- Returns:
- encrypted string
- Throws:
EncryptionException
- when encryption failed
-
decrypt
@NotNull @NotNull String decrypt(@Nullable @Nullable String data) throws EncryptionException
Deprecated.Set of complementary methodsencrypt(String)
anddecrypt(String)
provide means to obfuscate sensitive data.- Parameters:
data
- string to be decrypted- Returns:
- decrypted string
- Throws:
EncryptionException
- when decryption failed
-
-