/** * 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); }