/** * Sets the algorithm to be used by the internal encryptor, if a specific encryptor has not been * set with <tt>setEncryptor(...)</tt>. * * @param algorithm the algorithm to be set for the internal encryptor */ public void setAlgorithm(final String algorithm) { 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.setAlgorithm(algorithm); }