Home | History | Annotate | Download | only in jcajce

Lines Matching defs:password

6  * A password based key for use with PKCS#12.
11 private final char[] password;
14 * Basic constructor for a password based key - secret key generation parameters will be passed separately..
16 * @param password password to use.
18 public PKCS12Key(char[] password)
20 this(password, false);
27 * @param password password to use.
30 public PKCS12Key(char[] password, boolean useWrongZeroLengthConversion)
32 if (password == null)
34 password = new char[0];
37 this.password = new char[password.length];
40 System.arraycopy(password, 0, this.password, 0, password.length);
44 * Return a reference to the char[] array holding the password.
46 * @return a reference to the password array.
50 return password;
54 * Return the password based key derivation function this key is for,
74 * Return the password converted to bytes.
76 * @return the password converted to a byte array.
80 if (useWrongZeroLengthConversion && password.length == 0)
85 return PBEParametersGenerator.PKCS12PasswordToBytes(password);