Package com.alibaba.druid.filter.config
Class ConfigTools
- java.lang.Object
-
- com.alibaba.druid.filter.config.ConfigTools
-
@Deprecated public class ConfigTools extends Object
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_PUBLIC_KEY_STRINGDeprecated.
-
Constructor Summary
Constructors Constructor Description ConfigTools()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Stringdecrypt(String cipherText)Deprecated.static Stringdecrypt(String publicKeyText, String cipherText)Deprecated.static Stringdecrypt(PublicKey publicKey, String cipherText)Deprecated.static Stringencrypt(byte[] keyBytes, String plainText)Deprecated.static Stringencrypt(String plainText)Deprecated.static Stringencrypt(String key, String plainText)Deprecated.static String[]genKeyPair(int keySize)Deprecated.static byte[][]genKeyPairBytes(int keySize)Deprecated.static PublicKeygetPublicKey(String publicKeyText)Deprecated.static PublicKeygetPublicKeyByPublicKeyFile(String publicKeyFile)Deprecated.static PublicKeygetPublicKeyByX509(String x509File)Deprecated.static voidmain(String[] args)Deprecated.
-
-
-
Field Detail
-
DEFAULT_PUBLIC_KEY_STRING
@Deprecated public static final String DEFAULT_PUBLIC_KEY_STRING
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
decrypt
public static String decrypt(String cipherText) throws Exception
Deprecated.- Throws:
Exception
-
decrypt
public static String decrypt(String publicKeyText, String cipherText) throws Exception
Deprecated.- Throws:
Exception
-
getPublicKeyByPublicKeyFile
public static PublicKey getPublicKeyByPublicKeyFile(String publicKeyFile)
Deprecated.
-
decrypt
public static String decrypt(PublicKey publicKey, String cipherText) throws Exception
Deprecated.- Throws:
Exception
-
encrypt
public static String encrypt(String plainText) throws Exception
Deprecated.- Throws:
Exception
-
encrypt
public static String encrypt(String key, String plainText) throws Exception
Deprecated.- Throws:
Exception
-
encrypt
public static String encrypt(byte[] keyBytes, String plainText) throws Exception
Deprecated.- Throws:
Exception
-
genKeyPairBytes
public static byte[][] genKeyPairBytes(int keySize) throws NoSuchAlgorithmException, NoSuchProviderExceptionDeprecated.
-
genKeyPair
public static String[] genKeyPair(int keySize) throws NoSuchAlgorithmException, NoSuchProviderException
Deprecated.
-
-