Trust Store Configuration Update

Updates the configuration of the trust store.

Syntax

void updateTrustStoreConfiguration(ServerComponentVO serverComponent) throws SUPAdminException;

Returns

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

Examples

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