コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 /**
  * 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;
 }
コード例 #3
0
 /**
  * Returns whether this config object is complete or not (both name and validation word have been
  * set). <b>Intended for internal use only</b>.
  *
  * @return whether the config object is complete or not.
  */
 public boolean isComplete() {
   return ((CommonUtils.isNotEmpty(this.name)) && (CommonUtils.isNotEmpty(this.validationWord)));
 }