Class CryptoHelper
java.lang.Object
com.aeontronix.enhancedmule.tools.cli.properties.CryptoHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic voiddecryptProperties(com.aeontronix.kryptotek.Key key, File descriptorFile, File propertiesFile) static Stringstatic voidencryptProperties(com.aeontronix.kryptotek.Key key, File descriptorFile, File propertiesFile) findSecureProperties(@NotNull File file)
-
Field Details
-
ENCRYPTED_PROP_REGEX
-
-
Constructor Details
-
CryptoHelper
public CryptoHelper()
-
-
Method Details
-
crypt
public static String crypt(com.aeontronix.kryptotek.Key key, String value, boolean encrypt) throws com.aeontronix.kryptotek.EncryptionException, com.aeontronix.kryptotek.DecryptionException - Throws:
com.aeontronix.kryptotek.EncryptionExceptioncom.aeontronix.kryptotek.DecryptionException
-
encrypt
public static String encrypt(com.aeontronix.kryptotek.Key key, String value, boolean noExpression) throws com.aeontronix.kryptotek.EncryptionException - Throws:
com.aeontronix.kryptotek.EncryptionException
-
decrypt
public static String decrypt(com.aeontronix.kryptotek.Key key, String value) throws com.aeontronix.kryptotek.DecryptionException - Throws:
com.aeontronix.kryptotek.DecryptionException
-
findSecureProperties
@NotNull public static @NotNull Set<String> findSecureProperties(@NotNull @NotNull File file) throws IOException - Throws:
IOException
-
encryptProperties
public static void encryptProperties(com.aeontronix.kryptotek.Key key, File descriptorFile, File propertiesFile) throws IOException, com.aeontronix.kryptotek.EncryptionException - Throws:
IOExceptioncom.aeontronix.kryptotek.EncryptionException
-
decryptProperties
public static void decryptProperties(com.aeontronix.kryptotek.Key key, File descriptorFile, File propertiesFile) throws IOException, com.aeontronix.kryptotek.DecryptionException - Throws:
IOExceptioncom.aeontronix.kryptotek.DecryptionException
-