const std::string TOKEN_VALUE_VISIBILITY_PARTNER = "tizen-partner";
const std::string TOKEN_VALUE_VISIBILITY_PARTNER_OPERATOR = "tizen-partner-operator";
const std::string TOKEN_VALUE_VISIBILITY_PARTNER_MANUFACTURER = "tizen-partner-manufacturer";
+const std::string TOKEN_VALUE_VISIBILITY_PLATFORM = "tizen-platform";
int hexCharToInt(char c)
{
m_certificateDomain = CertStoreId::VIS_PARTNER_OPERATOR;
} else if (name == TOKEN_VALUE_VISIBILITY_PARTNER_MANUFACTURER) {
m_certificateDomain = CertStoreId::VIS_PARTNER_MANUFACTURER;
+ } else if (name == TOKEN_VALUE_VISIBILITY_PLATFORM) {
+ m_certificateDomain = CertStoreId::VIS_PLATFORM;
} else {
- LogWarning("This domain will be ignored: " << name);
+ LogWarning("This domain will be ignored : " << name);
m_certificateDomain = 0;
}
}
const CertStoreId::Type getVisibilityLevel(void) const
{
- if (m_storeIdSet.contains(CertStoreId::VIS_PUBLIC) == true)
- return CertStoreId::VIS_PUBLIC;
+ if (m_storeIdSet.contains(CertStoreId::VIS_PLATFORM) == true)
+ return CertStoreId::VIS_PLATFORM;
+ else if (m_storeIdSet.contains(CertStoreId::VIS_PARTNER_MANUFACTURER) == true)
+ return CertStoreId::VIS_PLATFORM;
+ else if (m_storeIdSet.contains(CertStoreId::VIS_PARTNER_OPERATOR) == true)
+ return CertStoreId::VIS_PLATFORM;
else if (m_storeIdSet.contains(CertStoreId::VIS_PARTNER) == true)
return CertStoreId::VIS_PARTNER;
- else if (m_storeIdSet.contains(CertStoreId::VIS_PARTNER_OPERATOR) == true)
- return CertStoreId::VIS_PARTNER_OPERATOR;
- else if (m_storeIdSet.contains(CertStoreId::VIS_PARTNER_MANUFACTURER) == true)
- return CertStoreId::VIS_PARTNER_MANUFACTURER;
+ else if (m_storeIdSet.contains(CertStoreId::VIS_PUBLIC) == true)
+ return CertStoreId::VIS_PUBLIC;
else {
LogWarning("Visibility level was broken.");
return 0;
<< storeIdSet.contains(CertStoreId::WAC_MEMBER));
LogDebug("Is root certificate from TIZEN_MEMBER domain: "
<< storeIdSet.contains(CertStoreId::TIZEN_MEMBER));
- LogDebug("Is root certificate from TIZEN_ORANGE domain: "
- << storeIdSet.contains(CertStoreId::ORANGE_LEGACY));
+ LogDebug("Is root certificate from TIZEN_PUBLIC domain: "
+ << storeIdSet.contains(CertStoreId::VIS_PUBLIC));
+ LogDebug("Is root certificate from TIZEN_PARTNER domain: "
+ << storeIdSet.contains(CertStoreId::VIS_PARTNER));
+ LogDebug("Is root certificate from TIZEN_PLATFORM domain: "
+ << storeIdSet.contains(CertStoreId::VIS_PLATFORM));
LogDebug(" visibility level is public : "
<< storeIdSet.contains(CertStoreId::VIS_PUBLIC));
<< storeIdSet.contains(CertStoreId::WAC_MEMBER));
LogDebug("Is root certificate from TIZEN_MEMBER domain: "
<< storeIdSet.contains(CertStoreId::TIZEN_MEMBER));
- LogDebug("Is root certificate from ORANGE_LEGACY domain: "
- << storeIdSet.contains(CertStoreId::ORANGE_LEGACY));
+ LogDebug("Is root certificate from TIZEN_PUBLIC domain: "
+ << storeIdSet.contains(CertStoreId::VIS_PUBLIC));
+ LogDebug("Is root certificate from TIZEN_PARTNER domain: "
+ << storeIdSet.contains(CertStoreId::VIS_PARTNER));
+ LogDebug("Is root certificate from TIZEN_PLATFORM domain: "
+ << storeIdSet.contains(CertStoreId::VIS_PLATFORM));
LogDebug(" visibility level is public : "
<< storeIdSet.contains(CertStoreId::VIS_PUBLIC));