XWIKI-5261 : Password hashes dumpable.

(cherry picked from commit a837eeab2a02ba32f0ca40885f18cd6f2b2ab511)
XWIKI-5261 : Password hashes dumpable.

(cherry picked from commit bbdaf2252bf5d6eff3ca349672067fe7f7ea95fb)
XWIKI-5261 : Password hashes dumpable

(cherry picked from commit a29097141a0be41662a07fce2e7b770dd0335662)
[misc] Applied code style.

(cherry picked from commit 5c73e675ad10c6f38c72cb388b1e84941cc6b3ea)
XWIKI-5261: Password hashes dumpable.
- Using the ContextAuthorizationManager for PR checks.

(cherry picked from commit 6e9f906055c3244a2e2f3a8d3be8b81d22affd3f)

Conflicts:
	xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Document.java
XWIKI-5261: Password hashes dumpable.
- Kept previous getPasswordHash method signature and added a new one for the salting usecase.
- Added javadoc for the hash methods.

(cherry picked from commit f3b273c83edad2518cea15b73a16b4070f654af8)