}
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;
}