Lines Matching refs:pw
149 authenticate(boolean initial, String name, Object pw, int version,
191 // anonymous bind; update name/pw for LDAPv2 retry
192 res = ldapBind(name=null, (byte[])(pw=null), ctls, null,
213 encodedPw = encodePassword(pw, isLdapv3);
225 // If pw was copied to a new array, clear that array as
227 if (encodedPw != pw && encodedPw != null) {
236 res = LdapSasl.saslBind(this, conn, conn.host, name, pw,
265 encodedPw = encodePassword(pw, false);
277 // If pw was copied to a new array, clear that array as
279 if (encodedPw != pw && encodedPw != null) {
410 private static byte[] encodePassword(Object pw, boolean v3) throws IOException {
412 if (pw instanceof char[]) {
413 pw = new String((char[])pw);
416 if (pw instanceof String) {
418 return ((String)pw).getBytes("UTF8");
420 return ((String)pw).getBytes("8859_1");
423 return (byte[])pw;