Package io.confluent.dekregistry.client
Interface DekRegistryClient
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
CachedDekRegistryClient,MockDekRegistryClient
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial) createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted) createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted, boolean rewrap) createKek(String name, String kmsType, String kmsKeyId, Map<String, String> kmsProps, String doc, boolean shared) createKek(String name, String kmsType, String kmsKeyId, Map<String, String> kmsProps, String doc, boolean shared, boolean deleted) default KekcreateKek(String name, String kmsType, String kmsKeyId, Map<String, String> kmsProps, String doc, boolean shared, boolean deleted, String context) voidvoiddeleteDekVersion(String kekName, String subject, int version, DekFormat algorithm, boolean permanentDelete) voiddefault voidgetDekLatestVersion(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) getDekVersion(String kekName, String subject, int version, DekFormat algorithm, boolean lookupDeleted) default KeklistDekVersions(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) listKeks(boolean lookupDeleted) voidreset()default voiddefault com.google.common.base.Tickerticker()voidundeleteDek(String kekName, String subject, DekFormat algorithm) voidundeleteDekVersion(String kekName, String subject, int version, DekFormat algorithm) voidundeleteKek(String kekName) default voidundeleteKek(String kekName, String context) default Kek
-
Field Details
-
LATEST_VERSION
static final int LATEST_VERSION- See Also:
-
-
Method Details
-
ticker
default com.google.common.base.Ticker ticker() -
listKeks
- Throws:
IOExceptionRestClientException
-
listKeks
List<String> listKeks(List<String> subjectPrefix, boolean lookupDeleted) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getKek
- Throws:
IOExceptionRestClientException
-
getKek
default Kek getKek(String name, boolean lookupDeleted, String context) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
listDeks
List<String> listDeks(String kekName, boolean lookupDeleted) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
listDekVersions
List<Integer> listDekVersions(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getDek
Dek getDek(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getDekVersion
Dek getDekVersion(String kekName, String subject, int version, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
getDekLatestVersion
Dek getDekLatestVersion(String kekName, String subject, DekFormat algorithm, boolean lookupDeleted) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
createKek
Kek createKek(String name, String kmsType, String kmsKeyId, Map<String, String> kmsProps, String doc, boolean shared) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
createKek
Kek createKek(String name, String kmsType, String kmsKeyId, Map<String, String> kmsProps, String doc, boolean shared, boolean deleted) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
createKek
default Kek createKek(String name, String kmsType, String kmsKeyId, Map<String, String> kmsProps, String doc, boolean shared, boolean deleted, String context) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
createDek
Dek createDek(String kekName, String subject, DekFormat algorithm, String encryptedKeyMaterial) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
createDek
Dek createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
createDek
Dek createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
createDek
Dek createDek(String kekName, String subject, int version, DekFormat algorithm, String encryptedKeyMaterial, boolean deleted, boolean rewrap) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
updateKek
Kek updateKek(String name, Map<String, String> kmsProps, String doc, Boolean shared) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
updateKek
default Kek updateKek(String name, Map<String, String> kmsProps, String doc, Boolean shared, String context) throws IOException, RestClientException- Throws:
IOExceptionRestClientException
-
deleteKek
- Throws:
IOExceptionRestClientException
-
deleteKek
default void deleteKek(String kekName, boolean permanentDelete, String context) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
deleteDek
void deleteDek(String kekName, String subject, DekFormat algorithm, boolean permanentDelete) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
deleteDekVersion
void deleteDekVersion(String kekName, String subject, int version, DekFormat algorithm, boolean permanentDelete) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
undeleteKek
- Throws:
IOExceptionRestClientException
-
undeleteKek
- Throws:
IOExceptionRestClientException
-
undeleteDek
void undeleteDek(String kekName, String subject, DekFormat algorithm) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
undeleteDekVersion
void undeleteDekVersion(String kekName, String subject, int version, DekFormat algorithm) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-
testKek
- Throws:
IOExceptionRestClientException
-
reset
void reset() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-