Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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 name name 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 name name in the specified namespace.

  • deleteSecureData(String namespace, String name): Deletes the secure key (and its associated data) identified by the key name name 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.