Package org.jasypt.digest.config

Examples of org.jasypt.digest.config.SimpleStringDigesterConfig


     * </p>
     *
     * @param params encryption parameters
     */
    public JasyptEncryption(Map<String,String> params) {
        SimpleStringDigesterConfig config = new SimpleStringDigesterConfig();
        for (String key : params.keySet()) {
            if (EncryptionService.ALGORITHM.equalsIgnoreCase(key)) {
                config.setAlgorithm(params.get(key));
            } else if (EncryptionService.ENCODING.equalsIgnoreCase(key)) {
                config.setStringOutputType(params.get(key));
            } else if ("providerName".equalsIgnoreCase(key)) {
                config.setProviderName(params.get(key));
            } else if ("saltSizeBytes".equalsIgnoreCase(key)) {
                config.setSaltSizeBytes(params.get(key));
            } else if ("iterations".equalsIgnoreCase(key)) {
                config.setIterations(params.get(key));
            } else if ("providerClassName".equalsIgnoreCase(key)) {
                config.setProviderClassName(params.get(key));
            } else if ("saltGeneratorClassName".equalsIgnoreCase(key)) {
                config.setSaltGeneratorClassName(params.get(key));
            } else {
                throw new IllegalArgumentException("Unsupported encryption parameter: " + key);
            }
        }
        this.passwordEncryptor = new ConfigurablePasswordEncryptor();
View Full Code Here


     * </p>
     *
     * @param params encryption parameters
     */
    public JasyptEncryption(Map<String,String> params) {
        SimpleStringDigesterConfig config = new SimpleStringDigesterConfig();
        for (String key : params.keySet()) {
            if (EncryptionService.ALGORITHM.equalsIgnoreCase(key)) {
                config.setAlgorithm(params.get(key));
            } else if (EncryptionService.ENCODING.equalsIgnoreCase(key)) {
                config.setStringOutputType(params.get(key));
            } else if ("providerName".equalsIgnoreCase(key)) {
                config.setProviderName(params.get(key));
            } else if ("saltSizeBytes".equalsIgnoreCase(key)) {
                config.setSaltSizeBytes(params.get(key));
            } else if ("iterations".equalsIgnoreCase(key)) {
                config.setIterations(params.get(key));
            } else if ("providerClassName".equalsIgnoreCase(key)) {
                config.setProviderClassName(params.get(key));
            } else if ("saltGeneratorClassName".equalsIgnoreCase(key)) {
                config.setSaltGeneratorClassName(params.get(key));
            } else {
                throw new IllegalArgumentException("Unsupported encryption parameter: " + key);
            }
        }
        this.passwordEncryptor = new ConfigurablePasswordEncryptor();
View Full Code Here

     * </p>
     *
     * @param params encryption parameters
     */
    public JasyptEncryption(Map<String,String> params) {
        SimpleStringDigesterConfig config = new SimpleStringDigesterConfig();
        for (String key : params.keySet()) {
            if (EncryptionService.ALGORITHM.equalsIgnoreCase(key)) {
                config.setAlgorithm(params.get(key));
            } else if (EncryptionService.ENCODING.equalsIgnoreCase(key)) {
                config.setStringOutputType(params.get(key));
            } else if ("providerName".equalsIgnoreCase(key)) {
                config.setProviderName(params.get(key));
            } else if ("saltSizeBytes".equalsIgnoreCase(key)) {
                config.setSaltSizeBytes(params.get(key));
            } else if ("iterations".equalsIgnoreCase(key)) {
                config.setIterations(params.get(key));
            } else if ("providerClassName".equalsIgnoreCase(key)) {
                config.setProviderClassName(params.get(key));
            } else if ("saltGeneratorClassName".equalsIgnoreCase(key)) {
                config.setSaltGeneratorClassName(params.get(key));
            } else {
                throw new IllegalArgumentException("Unsupported encryption parameter: " + key);
            }
        }
        this.passwordEncryptor = new ConfigurablePasswordEncryptor();
View Full Code Here

TOP

Related Classes of org.jasypt.digest.config.SimpleStringDigesterConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.