Home | History | Annotate | Download | only in spec

Lines Matching defs:password

25  * The key specification for a <i>password based encryption</i> key.
27 * Password based encryption is described in <a
32 private char[] password;
38 * Creates a new <code>PBEKeySpec</code> with the specified password.
40 * @param password
41 * the password.
43 public PBEKeySpec(char[] password) {
44 if (password == null) {
45 this.password = EmptyArray.CHAR;
47 this.password = new char[password.length];
48 System.arraycopy(password, 0, this.password, 0, password.length);
56 * Creates a new <code>PBEKeySpec</code> with the specified password, salt,
59 * @param password
60 * the password.
73 public PBEKeySpec(char[] password, byte[] salt, int iterationCount,
88 if (password == null) {
89 this.password = EmptyArray.CHAR;
91 this.password = new char[password.length];
92 System.arraycopy(password, 0, this.password, 0, password.length);
101 * Creates a new <code>PBEKeySpec</code> with the specified password, salt
104 * @param password
105 * the password.
115 public PBEKeySpec(char[] password, byte[] salt, int iterationCount) {
126 if (password == null) {
127 this.password = EmptyArray.CHAR;
129 this.password = new char[password.length];
130 System.arraycopy(password, 0, this.password, 0, password.length);
139 * Clears the password by overwriting it.
142 Arrays.fill(password, '?');
143 password = null;
147 * Returns a copy of the password of this key specification.
149 * @return a copy of the password of this key specification.
151 * if the password has been cleared before.
154 if (password == null) {
155 throw new IllegalStateException("The password has been cleared");
157 char[] result = new char[password.length];
158 System.arraycopy(password, 0, result, 0, password.length);