...
listSecureData(String namespace)
: Lists all secure keys in the specified namespace.getSecureData(String namespace, String name)
: Retrieves the secure key identified by the key name key namename
in the specified namespace.
Managing Secure Keys in Programs
...
Code Block |
---|
Admin admin = getContext().getAdmin();
|
The Admin
object returned by the above call exposes these methods to manage secure keys:
putSecureData(String namespace, String name, String data, String description, Map<String, String> properties)
: Adds a new secure key identified by the key namename
in the specified namespace.deleteSecureData(String namespace, String name)
: Deletes the secure key (and its associated data) identified by the key namename
in the specified namespace.
For details on the setting the other parameters of the putSecureData()
method, see the Secure the Secure Keys HTTP RESTful API.