Class CachedDekRegistryClient
A caching DEK Registry client.
Inheritance
CachedDekRegistryClient
Assembly: Confluent.SchemaRegistry.Encryption.dll
Syntax
public class CachedDekRegistryClient : IDekRegistryClient, IDisposable
Constructors
CachedDekRegistryClient(IEnumerable<KeyValuePair<string, string>>)
Initialize a new instance of the SchemaRegistryClient class.
Declaration
public CachedDekRegistryClient(IEnumerable<KeyValuePair<string, string>> config)
Parameters
Declaration
public CachedDekRegistryClient(IEnumerable<KeyValuePair<string, string>> config, IAuthenticationHeaderValueProvider authenticationHeaderValueProvider)
Parameters
Fields
DefaultEnableSslCertificateVerification
The default SSL server certificate verification for Schema Registry REST API calls.
Declaration
public const bool DefaultEnableSslCertificateVerification = true
Field Value
DefaultMaxCachedKeys
The default maximum capacity of the local cache.
Declaration
public const int DefaultMaxCachedKeys = 1000
Field Value
DefaultTimeout
The default timeout value for Schema Registry REST API calls.
Declaration
public const int DefaultTimeout = 30000
Field Value
Properties
MaxCachedKeys
The maximum capacity of the local cache.
Declaration
public int MaxCachedKeys { get; }
Property Value
Methods
CreateDekAsync(string, Dek)
Declaration
public Task<RegisteredDek> CreateDekAsync(string kekName, Dek dek)
Parameters
Returns
CreateKekAsync(Kek)
Declaration
public Task<RegisteredKek> CreateKekAsync(Kek kek)
Parameters
Type |
Name |
Description |
Kek |
kek |
|
Returns
Dispose()
Releases unmanaged resources owned by this CachedSchemaRegistryClient instance.
Declaration
Dispose(bool)
Releases the unmanaged resources used by this object
and optionally disposes the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
true to release both managed and unmanaged resources;
false to release only unmanaged resources.
|
Declaration
public Task<RegisteredDek> GetDekAsync(string kekName, string subject, DekFormat? algorithm, bool ignoreDeletedDeks)
Parameters
Returns
Get a DEK latest version.
Declaration
public Task<RegisteredDek> GetDekLatestVersionAsync(string kekName, string subject, DekFormat? algorithm, bool ignoreDeletedDeks)
Parameters
Returns
Declaration
public Task<RegisteredDek> GetDekVersionAsync(string kekName, string subject, int version, DekFormat? algorithm, bool ignoreDeletedDeks)
Parameters
Returns
Get the list of DEK versions.
Declaration
public Task<List<int>> GetDekVersionsAsync(string kekName, string subject, DekFormat? algorithm, bool ignoreDeletedDeks)
Parameters
Returns
GetDeksAsync(string, bool)
Declaration
public Task<List<string>> GetDeksAsync(string kekName, bool ignoreDeletedDeks)
Parameters
Type |
Name |
Description |
string |
kekName |
|
bool |
ignoreDeletedDeks |
|
Returns
GetKekAsync(string, bool)
Declaration
public Task<RegisteredKek> GetKekAsync(string name, bool ignoreDeletedKeks)
Parameters
Type |
Name |
Description |
string |
name |
|
bool |
ignoreDeletedKeks |
|
Returns
GetKeksAsync(bool)
Declaration
public Task<List<string>> GetKeksAsync(bool ignoreDeletedKeks)
Parameters
Type |
Name |
Description |
bool |
ignoreDeletedKeks |
|
Returns
UpdateKekAsync(string, UpdateKek)
Declaration
public Task<RegisteredKek> UpdateKekAsync(string name, UpdateKek kek)
Parameters
Returns
Implements