...
Code Block | ||||
---|---|---|---|---|
| ||||
// Represents the meta data about the data
interface SecureStoreMetaData {
String getName();
String getDescription();
long getLastModifiedTime();
Map<String, String> getProperties();
}
// Represents the secure data
interface SecureStoreData {
// Returns the meta data about the secure data
SecureStoreMetaData getMetaData();
// Returns the secure data
byte[] get();
}
// Provides read-only access to secure store
interface SecureStore {
// Returns a list of available secure data in the secure store.
List<SecureStoreMetaData> list();
// Gets the secure data
SecureStoreData get(String name);
}
// Manager interface for managing secure data
interface SecureStoreManager {
// Stores the secure data
void put(String name, byte[] data, Map<String, String> properties);
// Remove the secure data
void delete(String name);
} |
...
Operation | REST API | Body | Response | |||||
---|---|---|---|---|---|---|---|---|
Put | POST /security/store/v1/key | Content-Type: application/json
| 201: Created 409: Conflict | |||||
Delete | DELETE /security/store/v1/key/<key-name> | N/A | 200 OK | |||||
Get | GET /security/store/v1/key/<key-name> | N/A | 200 OK Content-Type: application/json
| |||||
Get Metadata | GET /security/store/v1/key/<key-name>/metadata | N/A | 200 OK Content-Type: application/json
| |||||
List | GET /security/store/v1/keys/names | N/A | 200 OK Content-Type: application/json
|
Access Control
The cluster has KMS running
...