Class SecretEncryptionServiceImpl
java.lang.Object
com.atlassian.bamboo.crypto.instance.SecretEncryptionServiceImpl
- All Implemented Interfaces:
SecretEncryptionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringDecrypts the supplied secret.@NotNull StringdecryptIfDecryptable(@NotNull String encryptedSecret) Decrypts secret if possible or returns original string if not.@NotNull StringEncrypts the supplied string.booleanisDecryptable(@NotNull String encryptedSecret) booleanisEncrypted(@NotNull String string) Whether the supplied string has been encrypted by this service.protected voidsetSecretEncryptionService(SecretEncryptionServiceInternal secretEncryptionService)
-
Constructor Details
-
SecretEncryptionServiceImpl
public SecretEncryptionServiceImpl()
-
-
Method Details
-
isEncrypted
Description copied from interface:SecretEncryptionServiceWhether the supplied string has been encrypted by this service.- Specified by:
isEncryptedin interfaceSecretEncryptionService
-
decrypt
Description copied from interface:SecretEncryptionServiceDecrypts the supplied secret.- Specified by:
decryptin interfaceSecretEncryptionService
-
decryptIfDecryptable
Description copied from interface:SecretEncryptionServiceDecrypts secret if possible or returns original string if not.- Specified by:
decryptIfDecryptablein interfaceSecretEncryptionService
-
isDecryptable
- Specified by:
isDecryptablein interfaceSecretEncryptionService- Returns:
- true if Bamboo can decrypt given value.
-
encrypt
Description copied from interface:SecretEncryptionServiceEncrypts the supplied string.- Specified by:
encryptin interfaceSecretEncryptionService
-
setSecretEncryptionService
-