/**
  * Sets the PBEConfig to be used by the internal encryptor, if a specific encryptor has not been
  * set with <tt>setEncryptor(...)</tt>.
  *
  * @param config the PBEConfig to be set for the internal encryptor
  */
 public void setConfig(final PBEConfig config) {
   if (this.encryptorSet) {
     throw new EncryptionInitializationException(
         "An encryptor has been already set: no "
             + "further configuration possible on hibernate wrapper");
   }
   final StandardPBEBigIntegerEncryptor standardPBEBigIntegerEncryptor =
       (StandardPBEBigIntegerEncryptor) this.encryptor;
   standardPBEBigIntegerEncryptor.setConfig(config);
 }
 /**
  * Sets the password to be used by the internal encryptor (as a char[]), if a specific encryptor
  * has not been set with <tt>setEncryptor(...)</tt>.
  *
  * @since 1.8
  * @param password the password to be set for the internal encryptor
  */
 public void setPasswordCharArray(final char[] password) {
   if (this.encryptorSet) {
     throw new EncryptionInitializationException(
         "An encryptor has been already set: no "
             + "further configuration possible on hibernate wrapper");
   }
   final StandardPBEBigIntegerEncryptor standardPBEBigIntegerEncryptor =
       (StandardPBEBigIntegerEncryptor) this.encryptor;
   standardPBEBigIntegerEncryptor.setPasswordCharArray(password);
 }