Key Store Configuration Update

Updates the configuration of the key store.

Syntax

void updateKeyStoreConfiguration(ServerComponentVO serverComponent) throws SUPAdminException;

Returns

If successful, returns silently. If unsuccessful, returns SUPAdminException.

Examples

  • Update – updates the configuration of the key store, including the key store file path, and key store password:
    supServerConf.refresh();
    ServerComponentVO scvo = supServerConf.getKeyStoreConfiguration();
    ServerComponentVO scvo_new = new ServerComponentVO(scvo.getID(), scvo.getType());
    Map<String, String> properties = scvo.getProperties();
    properties.put("sup.sync.sslkeystore", "<key store file path>");
    properties.put("sup.sync.sslkeystore_password", "<key store password>");
    scvo_new.setProperties(properties);
    supServerConf.updateKeyStoreConfiguration(scvo_new);
    supServerConf.commit();