aspnet / DataProtection

[Archived] Data Protection APIs for protecting and unprotecting data. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
130 stars 87 forks source link

IXmlRepository contract to support removing elements #293

Closed kosa-gyula-77 closed 6 years ago

kosa-gyula-77 commented 6 years ago

Currently in version 2.0.1 IXmlRepository implementers has to parse XElement and determine its expiration date in order to remove expired elements from the underlying storage. Elements otherwise just get added but not removed.

Proposal:

IXmlRepository - or a new interface - exposes an additional method that allows the XmlKeyManager to make regular house cleaning by removing expired and/or revoked elements, e.g.:

void RemoveElement(string friendlyName);

aspnet-hello commented 6 years ago

This issue was moved to aspnet/Home#2320