Interface IDekRegistryClient
An interface implemented by Confluent DEK Registry clients.
Inherited Members
Namespace: Confluent.SchemaRegistry .Encryption
Assembly: Confluent.SchemaRegistry.Encryption.dll
Syntax
public interface IDekRegistryClient : IDisposable
Properties
MaxCachedKeys
The maximum capacity of the local cache.
Declaration
int MaxCachedKeys { get; }
Property Value
Type | Description |
---|---|
int |
Methods
CreateDekAsync(string, Dek)
Create a DEK.
Declaration
Task<RegisteredDek> CreateDekAsync(string kekName, Dek dek)
Parameters
Returns
Type | Description |
---|---|
Task<Registered |
CreateKekAsync(Kek)
Create a KEK.
Declaration
Task<RegisteredKek> CreateKekAsync(Kek kek)
Parameters
Type | Name | Description |
---|---|---|
Kek | kek |
Returns
Type | Description |
---|---|
Task<Registered |
GetDekAsync(string, string, DekFormat?, bool)
Get a DEK.
Declaration
Task<RegisteredDek> GetDekAsync(string kekName, string subject, DekFormat? algorithm, bool ignoreDeletedDeks)
Parameters
Returns
Type | Description |
---|---|
Task<Registered |
GetDekLatestVersionAsync(string, string, DekFormat?, bool)
Get a DEK latest version.
Declaration
Task<RegisteredDek> GetDekLatestVersionAsync(string kekName, string subject, DekFormat? algorithm, bool ignoreDeletedDeks)
Parameters
Returns
Type | Description |
---|---|
Task<Registered |
GetDekVersionAsync(string, string, int, DekFormat?, bool)
Get a DEK version.
Declaration
Task<RegisteredDek> GetDekVersionAsync(string kekName, string subject, int version, DekFormat? algorithm, bool ignoreDeletedDeks)
Parameters
Type | Name | Description |
---|---|---|
string | kekName | |
string | subject | |
int | version | |
Dek |
algorithm | |
bool | ignoreDeletedDeks |
Returns
Type | Description |
---|---|
Task<Registered |
GetDekVersionsAsync(string, string, DekFormat?, bool)
Get the list of DEK versions.
Declaration
Task<List<int>> GetDekVersionsAsync(string kekName, string subject, DekFormat? algorithm, bool ignoreDeletedDeks)
Parameters
Returns
GetDeksAsync(string, bool)
Get the list of DEKs.
Declaration
Task<List<string>> GetDeksAsync(string kekName, bool ignoreDeletedDeks)
Parameters
Returns
GetKekAsync(string, bool)
Get a KEK by name.
Declaration
Task<RegisteredKek> GetKekAsync(string name, bool ignoreDeletedKeks)
Parameters
Returns
Type | Description |
---|---|
Task<Registered |
GetKeksAsync(bool)
Get the list of KEKs.
Declaration
Task<List<string>> GetKeksAsync(bool ignoreDeletedKeks)
Parameters
Type | Name | Description |
---|---|---|
bool | ignoreDeletedKeks |
Returns
UpdateKekAsync(string, UpdateKek)
Update a KEK.
Declaration
Task<RegisteredKek> UpdateKekAsync(string name, UpdateKek kek)
Parameters
Returns
Type | Description |
---|---|
Task<Registered |