@zowe/imperative
Version:
framework for building configurable CLIs
23 lines • 1.29 kB
TypeScript
import { AbstractCredentialManager, SecureCredential } from "./abstract/AbstractCredentialManager";
import { ICredentialManagerOptions } from "./doc/ICredentialManagerOptions";
/**
* **NOTE** THIS CLASS SHOULD NOT BE EXPORTED FOR PUBLIC CONSUMPTION.
*
* This class is the fallback class when a credential manager fails to initialize.
* All methods in this class must throw te error passed in by the constructor.
*/
export declare class InvalidCredentialManager extends AbstractCredentialManager {
protected readonly service: string;
private readonly causeError;
/**
* Construct the credential manager object.
* @param service A service that needs to be passed to the superclass
* @param causeError The load failure that has occurred
* @param options Optional configuration options for the credential manager (not used in this implementation)
*/
constructor(service: string, causeError: Error, options?: ICredentialManagerOptions);
protected deleteCredentials(_account: string): Promise<void>;
protected loadCredentials(_account: string, _optional?: boolean): Promise<SecureCredential>;
protected saveCredentials(_account: string, _credentials: SecureCredential): Promise<void>;
}
//# sourceMappingURL=InvalidCredentialManager.d.ts.map