IKeyManager.CreateNewKey(DateTimeOffset, DateTimeOffset) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new key with the specified activation and expiration dates and persists the new key to the underlying repository.
public:
Microsoft::AspNetCore::DataProtection::KeyManagement::IKey ^ CreateNewKey(DateTimeOffset activationDate, DateTimeOffset expirationDate);
public Microsoft.AspNetCore.DataProtection.KeyManagement.IKey CreateNewKey (DateTimeOffset activationDate, DateTimeOffset expirationDate);
abstract member CreateNewKey : DateTimeOffset * DateTimeOffset -> Microsoft.AspNetCore.DataProtection.KeyManagement.IKey
Public Function CreateNewKey (activationDate As DateTimeOffset, expirationDate As DateTimeOffset) As IKey
Parameters
- activationDate
- DateTimeOffset
The date on which encryptions to this key may begin.
- expirationDate
- DateTimeOffset
The date after which encryptions to this key may no longer take place.
Returns
The newly-created IKey instance.