KSC Open API
Kaspersky Security Center API description
boolean ProductBackendIntegration::IfIntegrationAccessTokenValid ( wstring  wstrProdName,
wstring  wstrProdVersion 
)

Check whether KSC server has valid integration access token.

Please note, method checks not integration refresh token set by ProductBackendIntegration::SetIntegrationToken, but access token received from product backend using RefreshIntegrationToken command.

Parameters:
wstrProdName[in] (wstring) Product name
wstrProdVersion[in] (wstring) Product version
Returns:
true if valid integration access token is available, false otherwise
Exceptions:
ThrowsKLSTD::STDE_NOTFOUND if integration refresh token not set for the product or is expired.