code: public static boolean matches(final char[] assertedPassword, final ManagedUser user) {
          final char[] prehash = createSha512Hash(assertedPassword);
          // Todo: remove String when Jbcrypt supports char[]
          return BCrypt.checkpw(new String(prehash), user.getPassword());
      }
docs: Checks the validity of the asserted password against a ManagedUsers actual hashed password.
  
  @param assertedPassword the clear text password to check
  @param user The ManagedUser to check the password of
  @return true if assertedPassword matches the expected password of the ManangedUser, false if not
  @since 1.0.0