Home | History | Annotate | Download | only in spec

Lines Matching defs:salt

66     private byte[] salt = null;
89 * Constructor that takes a password, salt, iteration count, and
94 * <p> Note: the <code>password</code> and <code>salt</code>
99 * @param salt the salt.
102 * @exception NullPointerException if <code>salt</code> is null.
103 * @exception IllegalArgumentException if <code>salt</code> is empty,
107 public PBEKeySpec(char[] password, byte[] salt, int iterationCount,
114 if (salt == null) {
115 throw new NullPointerException("the salt parameter " +
117 } else if (salt.length == 0) {
118 throw new IllegalArgumentException("the salt parameter " +
121 this.salt = salt.clone();
135 * Constructor that takes a password, salt, iteration count for
139 * <p> Note: the <code>password</code> and <code>salt</code>
144 * @param salt the salt.
146 * @exception NullPointerException if <code>salt</code> is null.
147 * @exception IllegalArgumentException if <code>salt</code> is empty,
150 public PBEKeySpec(char[] password, byte[] salt, int iterationCount) {
156 if (salt == null) {
157 throw new NullPointerException("the salt parameter " +
159 } else if (salt.length == 0) {
160 throw new IllegalArgumentException("the salt parameter " +
163 this.salt = salt.clone();
203 * Returns a copy of the salt or null if not specified.
205 * <p> Note: this method should return a copy of the salt. It is
206 * the caller's responsibility to zero out the salt information after
209 * @return the salt.
212 if (salt != null) {
213 return salt.clone();