public function __construct()

in src/RsaKeyPairCredential.php [47:60]


    public function __construct($public_key_id, $private_key_file, array $config = [])
    {
        Filter::publicKeyId($public_key_id);
        Filter::privateKeyFile($private_key_file);

        $this->publicKeyId = $public_key_id;
        $this->privateKeyFile = $private_key_file;
        $this->config = $config;
        try {
            $this->privateKey = file_get_contents($private_key_file);
        } catch (Exception $exception) {
            throw new InvalidArgumentException($exception->getMessage());
        }
    }