Search in sources :

Example 6 with SimpleStringPBEConfig

use of org.jasypt.encryption.pbe.config.SimpleStringPBEConfig in project cloudstack by apache.

the class EncryptionSecretKeyChanger method initEncryptor.

private void initEncryptor(StandardPBEStringEncryptor encryptor, String secretKey) {
    encryptor.setAlgorithm("PBEWithMD5AndDES");
    SimpleStringPBEConfig stringConfig = new SimpleStringPBEConfig();
    stringConfig.setPassword(secretKey);
    encryptor.setConfig(stringConfig);
}
Also used : SimpleStringPBEConfig(org.jasypt.encryption.pbe.config.SimpleStringPBEConfig)

Aggregations

SimpleStringPBEConfig (org.jasypt.encryption.pbe.config.SimpleStringPBEConfig)6 CloudRuntimeException (com.cloud.utils.exception.CloudRuntimeException)2 BufferedReader (java.io.BufferedReader)2 IOException (java.io.IOException)2 InputStreamReader (java.io.InputStreamReader)2 PrintWriter (java.io.PrintWriter)2 ServerSocket (java.net.ServerSocket)2 Socket (java.net.Socket)2 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1 FileNotFoundException (java.io.FileNotFoundException)1 FileReader (java.io.FileReader)1 InputStream (java.io.InputStream)1 Properties (java.util.Properties)1