Class SecretEncryptionServiceImpl
java.lang.Object
com.atlassian.bamboo.crypto.instance.SecretEncryptionServiceImpl
- All Implemented Interfaces:
SecretEncryptionService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
Decrypts the supplied secret.@NotNull String
decryptIfDecryptable
(@NotNull String encryptedSecret) Decrypts secret if possible or returns original string if not.@NotNull String
Encrypts the supplied string.boolean
isDecryptable
(@NotNull String encryptedSecret) boolean
isEncrypted
(@NotNull String string) Whether the supplied string has been encrypted by this service.protected void
setSecretEncryptionService
(SecretEncryptionServiceInternal secretEncryptionService)
-
Constructor Details
-
SecretEncryptionServiceImpl
public SecretEncryptionServiceImpl()
-
-
Method Details
-
isEncrypted
Description copied from interface:SecretEncryptionService
Whether the supplied string has been encrypted by this service.- Specified by:
isEncrypted
in interfaceSecretEncryptionService
-
decrypt
Description copied from interface:SecretEncryptionService
Decrypts the supplied secret.- Specified by:
decrypt
in interfaceSecretEncryptionService
-
decryptIfDecryptable
Description copied from interface:SecretEncryptionService
Decrypts secret if possible or returns original string if not.- Specified by:
decryptIfDecryptable
in interfaceSecretEncryptionService
-
isDecryptable
- Specified by:
isDecryptable
in interfaceSecretEncryptionService
- Returns:
- true if Bamboo can decrypt given value.
-
encrypt
Description copied from interface:SecretEncryptionService
Encrypts the supplied string.- Specified by:
encrypt
in interfaceSecretEncryptionService
-
setSecretEncryptionService
-