Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* *
* SPDX-License-Identifier: EPL-2.0 *
* *
* Copyright Contributors to the Zowe Project. *
* *
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
const imperative_1 = require("@zowe/imperative");
module.exports = class CredentialManagerOverrides extends imperative_1.AbstractCredentialManager {
constructor(service, displayName) {
super(service, displayName);
this.consoleLog = imperative_1.Logger.getConsoleLogger();
}
deleteCredentials(account) {
return __awaiter(this, void 0, void 0, function* () {
this.consoleLog.info("CredentialManager in sample-plugin is deleting:\n" +
` service = ${this.service}\n` +
` account = ${account}`);
});
}
loadCredentials(account) {
return __awaiter(this, void 0, void 0, function* () {
this.consoleLog.info("CredentialManager in sample-plugin is loading:\n" +
` service = ${this.service}\n` +
` account = ${account}`);