public class MockDekRegistryClient extends Object implements DekRegistryClient
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
EMPTY_AAD |
LATEST_VERSION| Constructor and Description |
|---|
MockDekRegistryClient(Map<String,?> configs) |
| Modifier and Type | Method and Description |
|---|---|
Dek |
createDek(String kekName,
String subject,
DekFormat algorithm,
String encryptedKeyMaterial) |
Dek |
createDek(String kekName,
String subject,
int version,
DekFormat algorithm,
String encryptedKeyMaterial) |
Dek |
createDek(String kekName,
String subject,
int version,
DekFormat algorithm,
String encryptedKeyMaterial,
boolean deleted) |
Dek |
createDek(String kekName,
String subject,
int version,
DekFormat algorithm,
String encryptedKeyMaterial,
boolean deleted,
boolean rewrap) |
Kek |
createKek(String name,
String kmsType,
String kmsKeyId,
Map<String,String> kmsProps,
String doc,
boolean shared) |
Kek |
createKek(String name,
String kmsType,
String kmsKeyId,
Map<String,String> kmsProps,
String doc,
boolean shared,
boolean deleted) |
void |
deleteDek(String kekName,
String subject,
DekFormat algorithm,
boolean permanentDelete) |
void |
deleteDekVersion(String kekName,
String subject,
int version,
DekFormat algorithm,
boolean permanentDelete) |
void |
deleteKek(String kekName,
boolean permanentDelete) |
protected Cryptor |
getCryptor(DekFormat dekFormat) |
Dek |
getDek(String kekName,
String subject,
DekFormat algorithm,
boolean lookupDeleted) |
Dek |
getDekLatestVersion(String kekName,
String subject,
DekFormat algorithm,
boolean lookupDeleted) |
Dek |
getDekVersion(String kekName,
String subject,
int version,
DekFormat algorithm,
boolean lookupDeleted) |
Kek |
getKek(String name,
boolean lookupDeleted) |
List<String> |
listDeks(String kekName,
boolean lookupDeleted) |
List<Integer> |
listDekVersions(String kekName,
String subject,
DekFormat algorithm,
boolean lookupDeleted) |
List<String> |
listKeks(boolean lookupDeleted) |
List<String> |
listKeks(List<String> subjectPrefix,
boolean lookupDeleted) |
protected Dek |
maybeGenerateEncryptedDek(Dek key) |
protected Dek |
maybeGenerateRawDek(Dek key) |
void |
reset() |
void |
undeleteDek(String kekName,
String subject,
DekFormat algorithm) |
void |
undeleteDekVersion(String kekName,
String subject,
int version,
DekFormat algorithm) |
void |
undeleteKek(String kekName) |
Kek |
updateKek(String name,
Map<String,String> kmsProps,
String doc,
Boolean shared) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, tickerpublic List<String> listKeks(boolean lookupDeleted) throws IOException, RestClientException
listKeks in interface DekRegistryClientIOExceptionRestClientExceptionpublic List<String> listKeks(List<String> subjectPrefix, boolean lookupDeleted) throws IOException, RestClientException
listKeks in interface DekRegistryClientIOExceptionRestClientExceptionpublic List<Integer> listDekVersions(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException
listDekVersions in interface DekRegistryClientIOExceptionRestClientExceptionpublic Kek getKek(String name, boolean lookupDeleted) throws IOException, RestClientException
getKek in interface DekRegistryClientIOExceptionRestClientExceptionpublic List<String> listDeks(String kekName, boolean lookupDeleted) throws IOException, RestClientException
listDeks in interface DekRegistryClientIOExceptionRestClientExceptionpublic Dek getDek(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException
getDek in interface DekRegistryClientIOExceptionRestClientExceptionpublic Dek getDekVersion(String kekName, String subject, int version, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException
getDekVersion in interface DekRegistryClientIOExceptionRestClientExceptionpublic Dek getDekLatestVersion(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException
getDekLatestVersion in interface DekRegistryClientIOExceptionRestClientExceptionpublic Kek createKek(String name, String kmsType, String kmsKeyId, Map<String,String> kmsProps, String doc, boolean shared) throws IOException, RestClientException
createKek in interface DekRegistryClientIOExceptionRestClientExceptionpublic Kek createKek(String name, String kmsType, String kmsKeyId, Map<String,String> kmsProps, String doc, boolean shared, boolean deleted) throws IOException, RestClientException
createKek in interface DekRegistryClientIOExceptionRestClientExceptionpublic Dek createDek(String kekName, String subject, DekFormat algorithm, String encryptedKeyMaterial) throws IOException, RestClientException
createDek in interface DekRegistryClientIOExceptionRestClientExceptionpublic Dek createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial) throws IOException, RestClientException
createDek in interface DekRegistryClientIOExceptionRestClientExceptionpublic Dek createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted) throws IOException, RestClientException
createDek in interface DekRegistryClientIOExceptionRestClientExceptionpublic Dek createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted, boolean rewrap) throws IOException, RestClientException
createDek in interface DekRegistryClientIOExceptionRestClientExceptionprotected Dek maybeGenerateEncryptedDek(Dek key) throws IOException, RestClientException
IOExceptionRestClientExceptionprotected Dek maybeGenerateRawDek(Dek key) throws IOException, RestClientException
IOExceptionRestClientExceptionpublic Kek updateKek(String name, Map<String,String> kmsProps, String doc, Boolean shared) throws IOException, RestClientException
updateKek in interface DekRegistryClientIOExceptionRestClientExceptionpublic void deleteKek(String kekName, boolean permanentDelete) throws IOException, RestClientException
deleteKek in interface DekRegistryClientIOExceptionRestClientExceptionpublic void deleteDek(String kekName, String subject, DekFormat algorithm, boolean permanentDelete) throws IOException, RestClientException
deleteDek in interface DekRegistryClientIOExceptionRestClientExceptionpublic void deleteDekVersion(String kekName, String subject, int version, DekFormat algorithm, boolean permanentDelete) throws IOException, RestClientException
deleteDekVersion in interface DekRegistryClientIOExceptionRestClientExceptionpublic void undeleteKek(String kekName) throws IOException, RestClientException
undeleteKek in interface DekRegistryClientIOExceptionRestClientExceptionpublic void undeleteDek(String kekName, String subject, DekFormat algorithm) throws IOException, RestClientException
undeleteDek in interface DekRegistryClientIOExceptionRestClientExceptionpublic void undeleteDekVersion(String kekName, String subject, int version, DekFormat algorithm) throws IOException, RestClientException
undeleteDekVersion in interface DekRegistryClientIOExceptionRestClientExceptionpublic void reset()
reset in interface DekRegistryClientCopyright © 2026 Confluent, Inc.. All rights reserved.