Class SecretEncryptionServiceInternalImpl
- java.lang.Object
-
- com.atlassian.bamboo.crypto.instance.SecretEncryptionServiceInternalImpl
-
- All Implemented Interfaces:
SecretEncryptionServiceInternal
public class SecretEncryptionServiceInternalImpl extends Object implements SecretEncryptionServiceInternal
-
-
Constructor Summary
Constructors Constructor Description SecretEncryptionServiceInternalImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull String
decrypt(@NotNull String encryptedSecret)
Decrypts the supplied secret.@NotNull String
encrypt(@NotNull String secretToEncrypt)
Encrypts the supplied string.static SecretEncryptionService
forTesting()
boolean
isEncrypted(@NotNull String string)
Whether the supplied string has been encrypted by this service.void
reloadCipher()
Enforce reloading current cipher.
-
-
-
Method Detail
-
isEncrypted
public boolean isEncrypted(@NotNull @NotNull String string)
Description copied from interface:SecretEncryptionServiceInternal
Whether the supplied string has been encrypted by this service.- Specified by:
isEncrypted
in interfaceSecretEncryptionServiceInternal
-
decrypt
@NotNull public @NotNull String decrypt(@NotNull @NotNull String encryptedSecret)
Description copied from interface:SecretEncryptionServiceInternal
Decrypts the supplied secret.- Specified by:
decrypt
in interfaceSecretEncryptionServiceInternal
-
encrypt
@NotNull public @NotNull String encrypt(@NotNull @NotNull String secretToEncrypt)
Description copied from interface:SecretEncryptionServiceInternal
Encrypts the supplied string.- Specified by:
encrypt
in interfaceSecretEncryptionServiceInternal
-
reloadCipher
public void reloadCipher()
Description copied from interface:SecretEncryptionServiceInternal
Enforce reloading current cipher.- Specified by:
reloadCipher
in interfaceSecretEncryptionServiceInternal
-
forTesting
@TestOnly public static SecretEncryptionService forTesting()
-
-