{"version":3,"file":"X509Module.mjs","names":[],"sources":["../../../src/modules/x509/X509Module.ts"],"sourcesContent":["import type { DependencyManager, Module } from '../../plugins'\nimport { X509Api } from './X509Api'\nimport type { X509ModuleConfigOptions } from './X509ModuleConfig'\nimport { X509ModuleConfig } from './X509ModuleConfig'\nimport { X509RevocationService } from './X509RevocationService'\nimport { X509Service } from './X509Service'\n\n/**\n * @public\n */\nexport class X509Module implements Module {\n  public readonly api = X509Api\n\n  public readonly config: X509ModuleConfig\n\n  public constructor(options?: X509ModuleConfigOptions) {\n    this.config = new X509ModuleConfig(options)\n  }\n\n  /**\n   * Registers the dependencies of the sd-jwt-vc module on the dependency manager.\n   */\n  public register(dependencyManager: DependencyManager) {\n    // Register config\n    dependencyManager.registerInstance(X509ModuleConfig, this.config)\n\n    // Services\n    dependencyManager.registerSingleton(X509Service)\n    dependencyManager.registerSingleton(X509RevocationService)\n  }\n}\n"],"mappings":";;;;;;;;AAUA,IAAa,aAAb,MAA0C;CAKxC,YAAmB,SAAmC;EAJtD,KAAgB,MAAM;EAKpB,KAAK,SAAS,IAAI,iBAAiB,OAAO;CAC5C;;;;CAKA,SAAgB,mBAAsC;EAEpD,kBAAkB,iBAAiB,kBAAkB,KAAK,MAAM;EAGhE,kBAAkB,kBAAkB,WAAW;EAC/C,kBAAkB,kBAAkB,qBAAqB;CAC3D;AACF"}