/// <summary> /// Constructor for KeyManager /// </summary> /// <param name="options"></param> /// <param name="store"></param> /// <param name="cache"></param> /// <param name="protector"></param> /// <param name="clock"></param> /// <param name="newKeyLock"></param> /// <param name="logger"></param> /// <param name="httpContextAccessor"></param> public KeyManager( KeyManagementOptions options, ISigningKeyStore store, ISigningKeyStoreCache cache, ISigningKeyProtector protector, ISystemClock clock, INewKeyLock newKeyLock, ILogger <KeyManager> logger, IHttpContextAccessor httpContextAccessor = null) { options.Validate(); _options = options; _store = store; _cache = cache; _protector = protector; _clock = clock; _newKeyLock = newKeyLock; _logger = logger; _httpContextAccessor = httpContextAccessor; }
/// <summary> /// Constructor for KeyManager /// </summary> /// <param name="options"></param> /// <param name="store"></param> /// <param name="cache"></param> /// <param name="protector"></param> /// <param name="clock"></param> /// <param name="newKeyLock"></param> /// <param name="logger"></param> /// <param name="issuerNameService"></param> public KeyManager( KeyManagementOptions options, ISigningKeyStore store, ISigningKeyStoreCache cache, ISigningKeyProtector protector, ISystemClock clock, INewKeyLock newKeyLock, ILogger <KeyManager> logger, IIssuerNameService issuerNameService) { options.Validate(); _options = options; _store = store; _cache = cache; _protector = protector; _clock = clock; _newKeyLock = newKeyLock; _logger = logger; _issuerNameService = issuerNameService; }