}
this.encryptor = pbeEncryptor;
} else {
StandardPBEStringEncryptor newEncryptor =
new StandardPBEStringEncryptor();
newEncryptor.setPassword(this.password);
if (this.algorithm != null) {
newEncryptor.setAlgorithm(this.algorithm);
}
if (this.providerName != null) {
newEncryptor.setProviderName(this.providerName);
}
if (this.keyObtentionIterations != null) {
newEncryptor.setKeyObtentionIterations(
this.keyObtentionIterations.intValue());
}
if (this.stringOutputType != null) {
newEncryptor.setStringOutputType(this.stringOutputType);
}
newEncryptor.initialize();
this.encryptor = newEncryptor;
}