Examples of StandardPBEStringEncryptor


Examples of org.jasypt.encryption.pbe.StandardPBEStringEncryptor

        if (stringOutputType != null) {
            config.setStringOutputType(stringOutputType);
        }
       
       
        StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
        encryptor.setConfig(config);
       
        return encryptor.encrypt(input);
       
    }
View Full Code Here

Examples of org.jasypt.encryption.pbe.StandardPBEStringEncryptor

        if (stringOutputType != null) {
            config.setStringOutputType(stringOutputType);
        }
       
       
        StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
        encryptor.setConfig(config);
       
        return encryptor.decrypt(input);
       
    }
View Full Code Here

Examples of org.jasypt.encryption.pbe.StandardPBEStringEncryptor

                }
                this.encryptor = pbeEncryptor;
               
            } else {
               
                StandardPBEStringEncryptor newEncryptor =
                    new StandardPBEStringEncryptor();
               
                newEncryptor.setPassword(this.password);
               
                if (this.algorithm != null) {
                    newEncryptor.setAlgorithm(this.algorithm);
                }
               
                if (this.providerName != null) {
                    newEncryptor.setProviderName(this.providerName);
                }
               
                if (this.keyObtentionIterations != null) {
                    newEncryptor.setKeyObtentionIterations(
                            this.keyObtentionIterations.intValue());
                }
               
                if (this.stringOutputType != null) {
                    newEncryptor.setStringOutputType(this.stringOutputType);
                }
               
                newEncryptor.initialize();
               
                this.encryptor = newEncryptor;
               
            }
           
View Full Code Here

Examples of org.jasypt.encryption.pbe.StandardPBEStringEncryptor

     * creates a <tt>StandardPBEStringEncryptor</tt> for internal use, which
     * can be overriden by calling <tt>setEncryptor(...)</tt>.
     */
    public HibernatePBEStringEncryptor() {
        super();
        this.encryptor = new StandardPBEStringEncryptor();
        this.encryptorSet = false;
    }
View Full Code Here

Examples of org.jasypt.encryption.pbe.StandardPBEStringEncryptor

        if (this.encryptorSet) {
            throw new EncryptionInitializationException(
                    "An encryptor has been already set: no " +
                    "further configuration possible on hibernate wrapper");
        }
        StandardPBEStringEncryptor standardPBEStringEncryptor =
            (StandardPBEStringEncryptor) this.encryptor;
        standardPBEStringEncryptor.setPassword(password);
    }
View Full Code Here

Examples of org.jasypt.encryption.pbe.StandardPBEStringEncryptor

        if (this.encryptorSet) {
            throw new EncryptionInitializationException(
                    "An encryptor has been already set: no " +
                    "further configuration possible on hibernate wrapper");
        }
        StandardPBEStringEncryptor standardPBEStringEncryptor =
            (StandardPBEStringEncryptor) this.encryptor;
        standardPBEStringEncryptor.setAlgorithm(algorithm);
    }
View Full Code Here

Examples of org.jasypt.encryption.pbe.StandardPBEStringEncryptor

        if (this.encryptorSet) {
            throw new EncryptionInitializationException(
                    "An encryptor has been already set: no " +
                    "further configuration possible on hibernate wrapper");
        }
        StandardPBEStringEncryptor standardPBEStringEncryptor =
            (StandardPBEStringEncryptor) this.encryptor;
        standardPBEStringEncryptor.setKeyObtentionIterations(
                keyObtentionIterations);
    }
View Full Code Here

Examples of org.jasypt.encryption.pbe.StandardPBEStringEncryptor

        if (this.encryptorSet) {
            throw new EncryptionInitializationException(
                    "An encryptor has been already set: no " +
                    "further configuration possible on hibernate wrapper");
        }
        StandardPBEStringEncryptor standardPBEStringEncryptor =
            (StandardPBEStringEncryptor) this.encryptor;
        standardPBEStringEncryptor.setSaltGenerator(saltGenerator);
    }
View Full Code Here

Examples of org.jasypt.encryption.pbe.StandardPBEStringEncryptor

        if (this.encryptorSet) {
            throw new EncryptionInitializationException(
                    "An encryptor has been already set: no " +
                    "further configuration possible on hibernate wrapper");
        }
        StandardPBEStringEncryptor standardPBEStringEncryptor =
            (StandardPBEStringEncryptor) this.encryptor;
        standardPBEStringEncryptor.setProviderName(providerName);
    }
View Full Code Here

Examples of org.jasypt.encryption.pbe.StandardPBEStringEncryptor

        if (this.encryptorSet) {
            throw new EncryptionInitializationException(
                    "An encryptor has been already set: no " +
                    "further configuration possible on hibernate wrapper");
        }
        StandardPBEStringEncryptor standardPBEStringEncryptor =
            (StandardPBEStringEncryptor) this.encryptor;
        standardPBEStringEncryptor.setProvider(provider);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.