Documents or other resources that are secured via Basic or Digest authentication can be accessed by setting authentication credentials for PDFreactor using the authenticationCredentials configuration property:


Java

config.setAuthenticationCredentials(new KeyValuePair("user", "password");

C#

config.AuthenticationCredentials = new KeyValuePair("user", "password");

PHP

$config["authenticationCredentials"] = array(
    "key" => "user",
    "value" => "password"
);

JavaScript/Node.js

config.authenticationCredentials = {
    key: "user",
    value: "password"
};

Python

config["authenticationCredentials"] = {
    "key": "user",
    "value": "password"
}

Ruby

config["authenticationCredentials"] = {
    key: "user",
    value: "password"
}

Perl

$config["authenticationCredentials"] = {
    "key" => "user",
    "value" => "password"
};

REST

{ "authenticationCredentials": { "key": "user", "value": "password" }}


The credentials are set for all outgoing HTTP connections.