Class SecretEncryptor
- java.lang.Object
-
- com.atlassian.bamboo.crypto.instance.SecretEncryptor
-
public final class SecretEncryptor extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSecretEncryptor.ArmoredString
-
Constructor Summary
Constructors Constructor Description SecretEncryptor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringdecrypt(@NotNull String encryptedSecret, @NotNull Function<SecretEncryptor.ArmoredString,org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher> decryptorProvider)static Stringencrypt(@NotNull String secretToEncrypt, @NotNull Supplier<EncryptorWithSpec> encryptorSupplier)static booleanisEncrypted(@NotNull String string)
-
-
-
Method Detail
-
isEncrypted
public static boolean isEncrypted(@NotNull @NotNull String string)
-
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)
-
-