{"version":3,"file":"KeyManagementModule.mjs","names":[],"sources":["../../../src/modules/kms/KeyManagementModule.ts"],"sourcesContent":["import type { DependencyManager, Module } from '../../plugins'\nimport { KeyManagementApi } from './KeyManagementApi'\nimport type { KeyManagementModuleConfigOptions } from './KeyManagementModuleConfig'\nimport { KeyManagementModuleConfig } from './KeyManagementModuleConfig'\n\nexport class KeyManagementModule implements Module {\n  public readonly api = KeyManagementApi\n  public readonly config: KeyManagementModuleConfig\n\n  public constructor(config: KeyManagementModuleConfigOptions) {\n    this.config = new KeyManagementModuleConfig(config)\n  }\n\n  /**\n   * Registers the dependencies of the key management module.\n   */\n  public register(dependencyManager: DependencyManager) {\n    // Config\n    dependencyManager.registerInstance(KeyManagementModuleConfig, this.config)\n  }\n}\n"],"mappings":";;;;;;AAKA,IAAa,sBAAb,MAAmD;CAIjD,AAAO,YAAY,QAA0C;OAH7C,MAAM;AAIpB,OAAK,SAAS,IAAI,0BAA0B,OAAO;;;;;CAMrD,AAAO,SAAS,mBAAsC;AAEpD,oBAAkB,iBAAiB,2BAA2B,KAAK,OAAO"}