/** * 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; }
/** * 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 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; }
/** * 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; }
/** * 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> * Creates an <tt>EncryptablePreferencesPlaceholderConfigurer</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 EncryptablePreferencesPlaceholderConfigurer(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; }
/** * Creates a new instance of <tt>FixedByteArraySaltGenerator</tt> * * @param salt the specified salt. */ public ByteArrayFixedSaltGenerator(final byte[] salt) { super(); CommonUtils.validateNotNull(salt, "Salt cannot be set null"); this.salt = (byte[]) salt.clone(); }
public static byte[] appendArrays(final byte[] firstArray, final byte[] secondArray) { validateNotNull(firstArray, "Appended array cannot be null"); validateNotNull(secondArray, "Appended array cannot be null"); final byte[] result = new byte[firstArray.length + secondArray.length]; System.arraycopy(firstArray, 0, result, 0, firstArray.length); System.arraycopy(secondArray, 0, result, firstArray.length, secondArray.length); return result; }
public static byte[] appendArrays(final byte[] firstArray, final byte[] secondArray) { validateNotNull(firstArray, "Appended array cannot be null"); validateNotNull(secondArray, "Appended array cannot be null"); final byte[] result = new byte[firstArray.length + secondArray.length]; System.arraycopy(firstArray, 0, result, 0, firstArray.length); System.arraycopy(secondArray, 0, result, firstArray.length, secondArray.length); return result; }
/** * Sets the salt to be returned. * * @param salt the specified salt. */ public synchronized void setSalt(final byte[] salt) { CommonUtils.validateNotNull(salt, "Salt cannot be set null"); this.salt = (byte[]) salt.clone(); }
/** * Creates a new instance of <tt>FixedByteArraySaltGenerator</tt> * * @param salt the specified salt. */ public ByteArrayFixedSaltGenerator(final byte[] salt) { super(); CommonUtils.validateNotNull(salt, "Salt cannot be set null"); this.salt = (byte[]) salt.clone(); }
public static byte[] appendArrays(final byte[] firstArray, final byte[] secondArray) { validateNotNull(firstArray, "Appended array cannot be null"); validateNotNull(secondArray, "Appended array cannot be null"); final byte[] result = new byte[firstArray.length + secondArray.length]; System.arraycopy(firstArray, 0, result, 0, firstArray.length); System.arraycopy(secondArray, 0, result, firstArray.length, secondArray.length); return result; }
/** * Creates a new instance of <tt>FixedByteArraySaltGenerator</tt> * * @param salt the specified salt. */ public ByteArrayFixedSaltGenerator(final byte[] salt) { super(); CommonUtils.validateNotNull(salt, "Salt cannot be set null"); this.salt = (byte[]) salt.clone(); }
/** * Sets the salt to be returned. * * @param salt the specified salt. */ public synchronized void setSalt(final byte[] salt) { CommonUtils.validateNotNull(salt, "Salt cannot be set null"); this.salt = (byte[]) salt.clone(); }
/** * Sets the salt to be returned. * * @param salt the specified salt. */ public synchronized void setSalt(final byte[] salt) { CommonUtils.validateNotNull(salt, "Salt cannot be set null"); this.salt = (byte[]) salt.clone(); }
/** * <p> * Sets the salt generator to be used. If no salt generator is specified, * an instance of {@link org.jasypt.salt.RandomSaltGenerator} will be used. * </p> * * @param saltGenerator the salt generator to be used. */ public synchronized void setSaltGenerator(SaltGenerator saltGenerator) { CommonUtils.validateNotNull(saltGenerator, "Salt generator cannot be set null"); if (isInitialized()) { throw new AlreadyInitializedException(); } this.saltGenerator = saltGenerator; this.saltGeneratorSet = true; }
/** * <p> * Sets the salt generator to be used. If no salt generator is specified, * an instance of {@link org.jasypt.salt.RandomSaltGenerator} will be used. * </p> * * @param saltGenerator the salt generator to be used. */ public synchronized void setSaltGenerator(SaltGenerator saltGenerator) { CommonUtils.validateNotNull(saltGenerator, "Salt generator cannot be set null"); if (isInitialized()) { throw new AlreadyInitializedException(); } this.saltGenerator = saltGenerator; this.saltGeneratorSet = true; }
/** * <p> * Sets the salt generator to be used. If no salt generator is specified, * an instance of {@link org.jasypt.salt.RandomSaltGenerator} will be used. * </p> * * @param saltGenerator the salt generator to be used. */ public synchronized void setSaltGenerator(SaltGenerator saltGenerator) { CommonUtils.validateNotNull(saltGenerator, "Salt generator cannot be set null"); if (isInitialized()) { throw new AlreadyInitializedException(); } this.saltGenerator = saltGenerator; this.saltGeneratorSet = true; }