/** * Sets the charset to be applied to the salt for conversion into bytes. * * @param charset the specified charset */ public synchronized void setCharset(final String charset) { CommonUtils.validateNotNull(charset, "Charset cannot be set null"); this.charset = charset; }
/** * <p> * Returns whether this config object is complete or not (both name and * validation word have been set). <b>Intended for internal use only</b>. * </p> * * @return whether the config object is complete or not. */ public boolean isComplete() { return ((CommonUtils.isNotEmpty(this.name)) && (CommonUtils.isNotEmpty(this.validationWord))); }
/** * <p> * Sets the name by which this WebPBEConfig object will be identified * from the web. This name must be unique for each WebPBEConfig object. * </p> * * @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; }
public static String[] split(final String string) { // Whitespace will be used as separator return split(string, null); }
/** * Sets the salt to be returned. * * @param salt the specified salt. */ public synchronized void setSalt(final String salt) { CommonUtils.validateNotNull(salt, "Salt cannot be set null"); this.salt = salt; }
public static String[] split(final String string) { // Whitespace will be used as separator return split(string, null); }
/** * <p> * Sets the name by which this WebPBEConfig object will be identified * from the web. This name must be unique for each WebPBEConfig object. * </p> * * @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; }
/** * <p> * Returns whether this config object is complete or not (both name and * validation word have been set). <b>Intended for internal use only</b>. * </p> * * @return whether the config object is complete or not. */ public boolean isComplete() { return ((CommonUtils.isNotEmpty(this.name)) && (CommonUtils.isNotEmpty(this.validationWord))); }
/** * Sets the salt to be returned. * * @param salt the specified salt. */ public synchronized void setSalt(final String salt) { CommonUtils.validateNotNull(salt, "Salt cannot be set null"); this.salt = salt; }
public static String[] split(final String string) { // Whitespace will be used as separator return split(string, null); }
/** * <p> * Sets the name by which this WebPBEConfig object will be identified * from the web. This name must be unique for each WebPBEConfig object. * </p> * * @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; }
/** * <p> * Returns whether this config object is complete or not (both name and * validation word have been set). <b>Intended for internal use only</b>. * </p> * * @return whether the config object is complete or not. */ public boolean isComplete() { return ((CommonUtils.isNotEmpty(this.name)) && (CommonUtils.isNotEmpty(this.validationWord))); }
/** * Sets the salt to be returned. * * @param salt the specified salt. */ public synchronized void setSalt(final String salt) { CommonUtils.validateNotNull(salt, "Salt cannot be set null"); this.salt = salt; }
/** * <p> * 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. * </p> * * @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 charset to be applied to the salt for conversion into bytes. * * @param charset the specified charset */ public synchronized void setCharset(final String charset) { CommonUtils.validateNotNull(charset, "Charset cannot be set null"); this.charset = charset; }
/** * Sets the charset to be applied to the salt for conversion into bytes. * * @param charset the specified charset */ public synchronized void setCharset(final String charset) { CommonUtils.validateNotNull(charset, "Charset cannot be set null"); this.charset = charset; }
/** * <p> * Creates an <tt>EncryptablePropertyPlaceholderConfigurer</tt> instance which will use the * passed {@link TextEncryptor} object to decrypt encrypted values. * </p> * * @param textEncryptor * the {@link TextEncryptor} to be used do decrypt values. It can * not be null. */ public EncryptablePropertyPlaceholderConfigurer(final TextEncryptor textEncryptor) { super(); CommonUtils.validateNotNull(textEncryptor, "Encryptor cannot be null"); this.stringEncryptor = null; this.textEncryptor = textEncryptor; }
/** * <p> * Creates an <tt>EncryptablePropertyPlaceholderConfigurer</tt> instance which will use the * passed {@link TextEncryptor} object to decrypt encrypted values. * </p> * * @param textEncryptor * the {@link TextEncryptor} to be used do decrypt values. It can * not be null. */ public EncryptablePropertyPlaceholderConfigurer(final TextEncryptor textEncryptor) { super(); CommonUtils.validateNotNull(textEncryptor, "Encryptor cannot be null"); this.stringEncryptor = null; this.textEncryptor = textEncryptor; }
/** * <p> * Creates an <tt>EncryptablePropertyOverrideConfigurer</tt> instance which will use the * passed {@link TextEncryptor} object to decrypt encrypted values. * </p> * * @param textEncryptor * the {@link TextEncryptor} to be used do decrypt values. It can * not be null. */ public EncryptablePropertyOverrideConfigurer(final TextEncryptor textEncryptor) { super(); CommonUtils.validateNotNull(textEncryptor, "Encryptor cannot be null"); this.stringEncryptor = null; this.textEncryptor = textEncryptor; }
/** * <p> * Creates an <tt>EncryptablePropertyOverrideConfigurer</tt> instance which will use the * passed {@link TextEncryptor} object to decrypt encrypted values. * </p> * * @param textEncryptor * the {@link TextEncryptor} to be used do decrypt values. It can * not be null. */ public EncryptablePropertyOverrideConfigurer(final TextEncryptor textEncryptor) { super(); CommonUtils.validateNotNull(textEncryptor, "Encryptor cannot be null"); this.stringEncryptor = null; this.textEncryptor = textEncryptor; }