Class SecretEncryptionServiceInternalImpl
java.lang.Object
com.atlassian.bamboo.crypto.instance.SecretEncryptionServiceInternalImpl
- All Implemented Interfaces:
SecretEncryptionServiceInternal
public class SecretEncryptionServiceInternalImpl
extends Object
implements SecretEncryptionServiceInternal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
Decrypts the supplied secret.@NotNull String
Encrypts the supplied string.static SecretEncryptionService
boolean
isEncrypted
(@NotNull String string) Whether the supplied string has been encrypted by this service.void
Enforce reloading current cipher.
-
Constructor Details
-
SecretEncryptionServiceInternalImpl
public SecretEncryptionServiceInternalImpl()
-
-
Method Details
-
isEncrypted
Description copied from interface:SecretEncryptionServiceInternal
Whether the supplied string has been encrypted by this service.- Specified by:
isEncrypted
in interfaceSecretEncryptionServiceInternal
-
decrypt
Description copied from interface:SecretEncryptionServiceInternal
Decrypts the supplied secret.- Specified by:
decrypt
in interfaceSecretEncryptionServiceInternal
-
encrypt
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
-