@rxstack/security
Version:
RxStack Security Module
12 lines (11 loc) • 489 B
TypeScript
import { SecretConfiguration } from '../security-configuration';
import { KeyType } from '../interfaces';
import { NamedServiceInterface } from '@rxstack/service-registry';
export declare class SecretLoader implements NamedServiceInterface {
config: SecretConfiguration;
protected public_key?: Buffer | string;
protected private_key?: Buffer | string;
constructor(config: SecretConfiguration);
loadKey(type: KeyType): Promise<Buffer | string>;
getName(): string;
}