Home | History | Annotate | Download | only in spec

Lines Matching refs:salt

33     private final byte[] salt;
50 salt = null;
56 * Creates a new <code>PBEKeySpec</code> with the specified password, salt,
61 * @param salt
62 * the salt.
68 * if the salt is null.
70 * if the salt is empty, iteration count is zero or negative or
73 public PBEKeySpec(char[] password, byte[] salt, int iterationCount,
75 if (salt == null) {
76 throw new NullPointerException("salt == null");
78 if (salt.length == 0) {
79 throw new IllegalArgumentException("salt.length == 0");
94 this.salt = new byte[salt.length];
95 System.arraycopy(salt, 0, this.salt, 0, salt.length);
101 * Creates a new <code>PBEKeySpec</code> with the specified password, salt
106 * @param salt
107 * the salt.
111 * if salt is null.
113 * if the salt is empty or iteration count is zero or negative.
115 public PBEKeySpec(char[] password, byte[] salt, int iterationCount) {
116 if (salt == null) {
117 throw new NullPointerException("salt == null");
119 if (salt.length == 0) {
120 throw new IllegalArgumentException("salt.length == 0");
132 this.salt = new byte[salt.length];
133 System.arraycopy(salt, 0, this.salt, 0, salt.length);
163 * Returns a copy of the salt of this key specification.
165 * @return a copy of the salt of this key specification or null if none is
169 if (salt == null) {
172 byte[] result = new byte[salt.length];
173 System.arraycopy(salt, 0, result, 0, salt.length);