It depends on what version you're using, the commit in which this feature introduced was on Oct 18, 2018. It has the tag 5.2.0.M1
which means that's the release this commit will be introduced in, the official docs of that version now specify this feature exists:
Implementation of PasswordEncoder that uses the BCrypt strong hashing
function. Clients can optionally supply a "version" ($2a, $2b, $2y)
and a "strength" (a.k.a. log rounds in BCrypt) and a SecureRandom
instance. The larger the strength parameter the more work will have to
be done (exponentially) to hash the passwords. The default value is
10.
Before version 5.2.0.M1
this feature did not exist, there's no official release yet of this version, only snapshots (5.2.0.M1
was released on Jan 16, 2019).
This version (or newer) is what you'll have to use if you want to use this feature, until an official release is made.