Package org.jasypt.encryption.pbe

Examples of org.jasypt.encryption.pbe.StandardPBEBigDecimalEncryptor


    /**
     * Creates a new instance of <tt>StrongDecimalNumberEncryptor</tt>.
     */
    public StrongDecimalNumberEncryptor() {
        super();
        this.encryptor = new StandardPBEBigDecimalEncryptor();
        this.encryptor.setAlgorithm("PBEWithMD5AndTripleDES");
    }
View Full Code Here


    /**
     * Creates a new instance of <tt>BasicDecimalNumberEncryptor</tt>.
     */
    public BasicDecimalNumberEncryptor() {
        super();
        this.encryptor = new StandardPBEBigDecimalEncryptor();
        this.encryptor.setAlgorithm("PBEWithMD5AndDES");
    }
View Full Code Here

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

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

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

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

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

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

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

    /**
     * Creates a new instance of <tt>StrongDecimalNumberEncryptor</tt>.
     */
    public StrongDecimalNumberEncryptor() {
        super();
        this.encryptor = new StandardPBEBigDecimalEncryptor();
        this.encryptor.setAlgorithm("PBEWithMD5AndTripleDES");
    }
View Full Code Here

TOP

Related Classes of org.jasypt.encryption.pbe.StandardPBEBigDecimalEncryptor

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.