Package org.jasypt.encryption.pbe

Examples of org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor


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


                }
                this.encryptor = pbeEncryptor;
               
            } else {
               
                StandardPBEBigIntegerEncryptor newEncryptor =
                    new StandardPBEBigIntegerEncryptor();
               
                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>StandardPBEBigIntegerEncryptor</tt> for internal use, which
     * can be overriden by calling <tt>setEncryptor(...)</tt>. 
     */
    public HibernatePBEBigIntegerEncryptor() {
        super();
        this.encryptor = new StandardPBEBigIntegerEncryptor();
        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");
        }
        StandardPBEBigIntegerEncryptor standardPBEBigIntegerEncryptor =
            (StandardPBEBigIntegerEncryptor) this.encryptor;
        standardPBEBigIntegerEncryptor.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");
        }
        StandardPBEBigIntegerEncryptor standardPBEBigIntegerEncryptor =
            (StandardPBEBigIntegerEncryptor) this.encryptor;
        standardPBEBigIntegerEncryptor.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");
        }
        StandardPBEBigIntegerEncryptor standardPBEBigIntegerEncryptor =
            (StandardPBEBigIntegerEncryptor) this.encryptor;
        standardPBEBigIntegerEncryptor.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");
        }
        StandardPBEBigIntegerEncryptor standardPBEBigIntegerEncryptor =
            (StandardPBEBigIntegerEncryptor) this.encryptor;
        standardPBEBigIntegerEncryptor.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");
        }
        StandardPBEBigIntegerEncryptor standardPBEBigIntegerEncryptor =
            (StandardPBEBigIntegerEncryptor) this.encryptor;
        standardPBEBigIntegerEncryptor.setConfig(config);
    }
View Full Code Here

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

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

TOP

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

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.