Class SecretEncryptor
java.lang.Object
com.atlassian.bamboo.crypto.instance.SecretEncryptor
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
decrypt
(@NotNull String encryptedSecret, @NotNull Function<SecretEncryptor.ArmoredString, org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher> decryptorProvider) static String
encrypt
(@NotNull String secretToEncrypt, @NotNull Supplier<EncryptorWithSpec> encryptorSupplier) static boolean
isEncrypted
(@NotNull String string)
-
Constructor Details
-
SecretEncryptor
public SecretEncryptor()
-
-
Method Details
-
isEncrypted
-
encrypt
public static String encrypt(@NotNull @NotNull String secretToEncrypt, @NotNull @NotNull Supplier<EncryptorWithSpec> encryptorSupplier) -
decrypt
public static String decrypt(@NotNull @NotNull String encryptedSecret, @NotNull @NotNull Function<SecretEncryptor.ArmoredString, org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher> decryptorProvider)
-