/**
   * Initialises the Passthrough authentication module with the OSGi json configuration.
   *
   * @param requestPolicy {@inheritDoc}
   * @param responsePolicy {@inheritDoc}
   * @param handler {@inheritDoc}
   */
  @Override
  public void initialize(
      MessagePolicy requestPolicy,
      MessagePolicy responsePolicy,
      CallbackHandler handler,
      Map options)
      throws AuthException {

    queryOnResource = new JsonValue(options).get(QUERY_ON_RESOURCE).required().asString();
    authenticator =
        new AuthenticatorFactory(
                authnFilterHelper.getConnectionFactory(), authnFilterHelper.getCryptoService())
            .apply(new JsonValue(options));
  }