Package org.jasypt.encryption.pbe

Examples of org.jasypt.encryption.pbe.StandardPBEByteEncryptor


   *
   * @throws NullPointerException if <code>masterPasswordSource</code> is null.
   */
  public ProjoStoreBuilder configureSecurityForMasterPassword(PasswordSource masterPasswordSource)
  {
    return(configureSecurity(new StandardPBEByteEncryptor(), masterPasswordSource));
   
  }
View Full Code Here


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

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

     * creates a <tt>StandardPBEByteEncryptor</tt> for internal use, which
     * can be overriden by calling <tt>setEncryptor(...)</tt>.
     */
    public HibernatePBEByteEncryptor() {
        super();
        this.encryptor = new StandardPBEByteEncryptor();
        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");
        }
        StandardPBEByteEncryptor standardPBEByteEncryptor =
            (StandardPBEByteEncryptor) this.encryptor;
        standardPBEByteEncryptor.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");
        }
        StandardPBEByteEncryptor standardPBEByteEncryptor =
            (StandardPBEByteEncryptor) this.encryptor;
        standardPBEByteEncryptor.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");
        }
        StandardPBEByteEncryptor standardPBEByteEncryptor =
            (StandardPBEByteEncryptor) this.encryptor;
        standardPBEByteEncryptor.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");
        }
        StandardPBEByteEncryptor standardPBEByteEncryptor =
            (StandardPBEByteEncryptor) this.encryptor;
        standardPBEByteEncryptor.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");
        }
        StandardPBEByteEncryptor standardPBEByteEncryptor =
            (StandardPBEByteEncryptor) this.encryptor;
        standardPBEByteEncryptor.setConfig(config);
    }
View Full Code Here

                }
                this.encryptor = pbeEncryptor;
               
            } else {
               
                StandardPBEByteEncryptor newEncryptor =
                    new StandardPBEByteEncryptor();
               
                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

TOP

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

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.