public JsonWebKeyManagementBuilder AddFileStore( Action <IServiceProvider, FileJsonWebKeyPairStoreOptions> optionsAction = null) { _serviceCollection.AddSingleton(provider => { var options = new FileJsonWebKeyPairStoreOptions(); optionsAction?.Invoke(provider, options); return(options); }); _serviceCollection.AddSingleton <IJsonWebKeyPairStore, FileJsonWebKeyPairStore>(); return(this); }
public FileJsonWebKeyPairStore(FileJsonWebKeyPairStoreOptions options) { _filename = options.Filename; }