IDeletableKeyManager Interface

Definition

An extension of IKeyManager that supports key deletion.

public interface IDeletableKeyManager : Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyManager
type IDeletableKeyManager = interface
    interface IKeyManager
Public Interface IDeletableKeyManager
Implements IKeyManager
Implements

Properties

CanDeleteKeys

Indicates whether this key manager and the underlying IXmlRepository support key deletion.

Methods

CreateNewKey(DateTimeOffset, DateTimeOffset)

Creates a new key with the specified activation and expiration dates and persists the new key to the underlying repository.

(Inherited from IKeyManager)
DeleteKeys(Func<IKey,Boolean>)

Deletes keys matching a predicate.

Use with caution as deleting active keys will normally cause data loss.

GetAllKeys()

Fetches all keys from the underlying repository.

(Inherited from IKeyManager)
GetCacheExpirationToken()

Retrieves a token that signals that callers who have cached the return value of GetAllKeys should clear their caches. This could be in response to a call to CreateNewKey or RevokeKey, or it could be in response to some other external notification. Callers who are interested in observing this token should call this method before the corresponding call to GetAllKeys.

(Inherited from IKeyManager)
RevokeAllKeys(DateTimeOffset, String)

Revokes all keys created before a specified date and persists the revocation to the underlying repository.

(Inherited from IKeyManager)
RevokeKey(Guid, String)

Revokes a specific key and persists the revocation to the underlying repository.

(Inherited from IKeyManager)

Applies to