/** * Sets the validation word which will be asked from the web to the person setting the password * for the encryptor this config object belongs to. This validation word will make sure that only * an authorized person (for example, the application deployer) sets the value for the encryption * password. * * @param validation the validation word to be assigned to this config object */ public void setValidationWord(final String validation) { CommonUtils.validateNotEmpty(validation, "Validation word cannot be set empty"); this.validationWord = validation; }
/** * Sets the name by which this WebPBEConfig object will be identified from the web. This name must * be unique for each WebPBEConfig object. * * @param name the unique name which will identify this config object. */ public void setName(final String name) { CommonUtils.validateNotEmpty(name, "Name cannot be set empty"); this.name = name; }