@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
51 lines • 1.85 kB
JavaScript
;
/*
* Copyright 2024 Adobe
* All Rights Reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute this file in
* accordance with the terms of the Adobe license agreement accompanying
* it. If you have received this file from a source other than Adobe,
* then your use, modification, or distribution of it requires the prior
* written permission of Adobe.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServicePrincipalCredentials = void 0;
const ValidationUtil_1 = require("../internal/util/ValidationUtil");
/**
* Service Principal credentials allow your application to call PDF Services API.
* For getting the credentials,
* <a href = "https://www.adobe.com/go/dcsdks_credentials?ref=getStartedWithServicesSdk" target="_blank"> Click Here</a>
*/
class ServicePrincipalCredentials {
/**
* Constructs an instance of `ServicePrincipalCredentials`.
*
* @param params - The parameters for constructing an instance of `ServicePrincipalCredentials`.
* @param params.clientId - The client ID for `ServicePrincipalCredentials`. Cannot be undefined.
* @param params.clientSecret - The client secret for `ServicePrincipalCredentials`. Cannot be undefined.
*/
constructor(params) {
ValidationUtil_1.ValidationUtil.validateServicePrincipalCredentials(params);
this._clientId = params.clientId;
this._clientSecret = params.clientSecret;
}
/**
* Client Id
*
* @returns client Id
*/
get clientId() {
return this._clientId;
}
/**
* Client Secret
*
* @returns client secret
*/
get clientSecret() {
return this._clientSecret;
}
}
exports.ServicePrincipalCredentials = ServicePrincipalCredentials;
//# sourceMappingURL=ServicePrincipalCredentials.js.map