ldap/src/main/java/org/springframework/security/ldap/userdetails/LdapUserDetailsMapper.java
protected String mapPassword(Object passwordValue) {

		if (!(passwordValue instanceof String)) {
			// Assume it's binary
			passwordValue = new String((byte[]) passwordValue);
		}

		return (String) passwordValue;

	}
protected String mapPassword(Object passwordValue) {

		if (!(passwordValue instanceof String)) {
			// Assume it's binary
			passwordValue = new String((byte[]) passwordValue);
		}

		return (String) passwordValue;

	}
Extension point to allow customized creation of the user's password from the
attribute stored in the directory.

@param passwordValue the value of the password attribute
@return a String representation of the password.