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 Stringdecrypt(@NotNull String encryptedSecret)Decrypts the supplied secret.@NotNull Stringencrypt(@NotNull String secretToEncrypt)Encrypts the supplied string.static SecretEncryptionServiceforTesting()booleanisEncrypted(@NotNull String string)Whether the supplied string has been encrypted by this service.voidreloadCipher()Enforce reloading current cipher.
-
-
-
Method Detail
-
isEncrypted
public boolean isEncrypted(@NotNull @NotNull String string)Description copied from interface:SecretEncryptionServiceInternalWhether the supplied string has been encrypted by this service.- Specified by:
isEncryptedin interfaceSecretEncryptionServiceInternal
-
decrypt
@NotNull public @NotNull String decrypt(@NotNull @NotNull String encryptedSecret)
Description copied from interface:SecretEncryptionServiceInternalDecrypts the supplied secret.- Specified by:
decryptin interfaceSecretEncryptionServiceInternal
-
encrypt
@NotNull public @NotNull String encrypt(@NotNull @NotNull String secretToEncrypt)
Description copied from interface:SecretEncryptionServiceInternalEncrypts the supplied string.- Specified by:
encryptin interfaceSecretEncryptionServiceInternal
-
reloadCipher
public void reloadCipher()
Description copied from interface:SecretEncryptionServiceInternalEnforce reloading current cipher.- Specified by:
reloadCipherin interfaceSecretEncryptionServiceInternal
-
forTesting
@TestOnly public static SecretEncryptionService forTesting()
-
-