/** * @license * Verifalia - Email list cleaning and real-time email verification service * https://verifalia.com/ * support@verifalia.com * * Copyright (c) 2005-2024 Cobisi Research * * Cobisi Research * Via Della Costituzione, 31 * 35010 Vigonza * Italy - European Union * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ /// import { MultiplexedRestClient } from "../MultiplexedRestClient"; import { Authenticator } from "./Authenticator"; import { RequestInit as NodeRequestInit, Response as NodeResponse } from "node-fetch"; import { KeyObject } from "tls"; import { CancellationToken } from "../../common/CancellationToken"; import { RestProblem } from "../RestProblem"; /** * Allows to authenticate against the Verifalia API using an X.509 client certificate. * Learn more: https://verifalia.com/help/sub-accounts/what-is-x509-tls-client-certificate-authentication */ export declare class ClientCertificateAuthenticator implements Authenticator { private readonly _agent; constructor(cert: string | Buffer | (string | Buffer)[], key: string | Buffer | (Buffer | KeyObject)[], passphrase?: string); authenticate(restClient: MultiplexedRestClient, requestInit: NodeRequestInit | // HACK: Make the IDE's background compiler happy RequestInit): Promise; handleUnauthorizedRequest(restClient: MultiplexedRestClient, response: NodeResponse | // HACK: Make the IDE's background compiler happy Response, problem?: RestProblem, cancellationToken?: CancellationToken): Promise; } //# sourceMappingURL=ClientCertificateAuthenticator.d.ts.map