mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-20 21:43:18 +00:00
Adding SupplyChainCredentialValidatorTest, fixing assertEquals syntax in PolicySettingsTest, un-privating method in CertificateAttributeScvValidator
This commit is contained in:
parent
4dd395b988
commit
42a05a9e00
@ -877,7 +877,7 @@ public class CertificateAttributeScvValidator extends SupplyChainCredentialValid
|
||||
* @param potentialMatch the component info from a device info report
|
||||
* @return true if the fields match exactly (null is considered the same as an empty string)
|
||||
*/
|
||||
private static boolean isMatch(final UUID certificateId,
|
||||
public static boolean isMatch(final UUID certificateId,
|
||||
final ComponentIdentifier pcComponent,
|
||||
final ComponentInfo potentialMatch) {
|
||||
boolean matchesSoFar = true;
|
||||
|
@ -49,6 +49,6 @@ public class PolicySettingsTest {
|
||||
final String description = "A default policy";
|
||||
PolicySettings policy = new PolicySettings("Default Supply Chain Policy",
|
||||
description);
|
||||
assertEquals(policy.getDescription(), description);
|
||||
assertEquals(description, policy.getDescription());
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,36 @@
|
||||
{
|
||||
|
||||
"PLATFORM": {
|
||||
"PLATFORMMANUFACTURERSTR": "innotek GmbH","PLATFORMMODEL": "VirtualBox","PLATFORMVERSION": "1.2","PLATFORMSERIAL": "0"
|
||||
},
|
||||
"COMPONENTS": [
|
||||
{
|
||||
"COMPONENTCLASS": {
|
||||
"COMPONENTCLASSREGISTRY": "2.23.133.18.3.1",
|
||||
"COMPONENTCLASSVALUE": "00010002"
|
||||
},"MANUFACTURER": "Intel","MODEL": "Core i7","SERIAL": "Not Specified","REVISION": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz"
|
||||
},
|
||||
{
|
||||
"COMPONENTCLASS": {
|
||||
"COMPONENTCLASSREGISTRY": "2.23.133.18.3.1",
|
||||
"COMPONENTCLASSVALUE": "00050004"
|
||||
},"MANUFACTURER": "Intel Corporation","MODEL": "Ethernet Connection I217-V", "FIELDREPLACEABLE": "false","SERIAL": "23:94:17:ba:86:5e", "REVISION": "00"
|
||||
},
|
||||
{
|
||||
"COMPONENTCLASS": {
|
||||
"COMPONENTCLASSREGISTRY": "2.23.133.18.3.1",
|
||||
"COMPONENTCLASSVALUE": "00090002"
|
||||
},"MANUFACTURER": "Intel Corporation","MODEL": "82580 Gigabit Network Connection", "FIELDREPLACEABLE": "false", "SERIAL": "90:e2:ba:31:83:10", "REVISION": ""
|
||||
}
|
||||
],
|
||||
"PROPERTIES": [
|
||||
{
|
||||
"NAME": "uname -r",
|
||||
"VALUE": "3.10.0-862.11.6.el7.x86_64"
|
||||
},
|
||||
{
|
||||
"NAME": "cat /etc/centos-release",
|
||||
"VALUE": "CentOS Linux release 7.5.1804 (Core) "
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
{
|
||||
|
||||
"PLATFORM": {
|
||||
"PLATFORMMANUFACTURERSTR": "Not Specified","PLATFORMMODEL": "Not Specified","PLATFORMVERSION": "Not Specified"
|
||||
},
|
||||
"COMPONENTS": [
|
||||
{
|
||||
"MANUFACTURER": "Not Specified","MODEL": "Not Specified"
|
||||
},
|
||||
{
|
||||
"MANUFACTURER": "Not Specified","MODEL": "Not Specified","FIELDREPLACEABLE": "false"
|
||||
},
|
||||
{
|
||||
"MANUFACTURER": "Not Specified","MODEL": "UEFI"
|
||||
},
|
||||
{
|
||||
"MANUFACTURER": "Broadcom Inc. and subsidiaries","MODEL": "NetXtreme BCM5722 Gigabit Ethernet PCI Express","FIELDREPLACEABLE": "true","REVISION": "00"
|
||||
},
|
||||
{
|
||||
"MANUFACTURER": "Intel Corporation","MANUFACTURERID": "1.3.6.1.4.1.343","MODEL": "Ethernet Connection (2) I219-LM","FIELDREPLACEABLE": "true","REVISION": "31"
|
||||
}
|
||||
],
|
||||
"PROPERTIES": [
|
||||
{
|
||||
"NAME": "uname -r",
|
||||
"VALUE": "3.10.0-957.1.3.el7.x86_64"
|
||||
},
|
||||
{
|
||||
"NAME": "OS Release",
|
||||
"VALUE": "CentOS Linux 7 (Core)"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -0,0 +1,30 @@
|
||||
{
|
||||
|
||||
"PLATFORM": {
|
||||
"PLATFORMMANUFACTURERSTR": "innotek GmbH","PLATFORMMODEL": "VirtualBox","PLATFORMVERSION": "1.2","PLATFORMSERIAL": "0"
|
||||
},
|
||||
"COMPONENTS": [
|
||||
{
|
||||
"MANUFACTURER": "Intel","MODEL": "Core i7","SERIAL": "Not Specified","REVISION": "Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz"
|
||||
},
|
||||
{
|
||||
"MANUFACTURER": "Intel Corporation","MODEL": "Ethernet Connection I217-V", "FIELDREPLACEABLE": "false","SERIAL": "23:94:17:ba:86:5e", "REVISION": "00"
|
||||
},
|
||||
{
|
||||
"MANUFACTURER": "Intel Corporation","MODEL": "82580 Gigabit Network Connection", "FIELDREPLACEABLE": "false", "SERIAL": "90:e2:ba:31:83:10", "REVISION": ""
|
||||
},
|
||||
{
|
||||
"MANUFACTURER": "Intel","MODEL": "platform2018", "FIELDREPLACEABLE": "false", "SERIAL": "BQKP52840678", "REVISION": "1.0"
|
||||
}
|
||||
],
|
||||
"PROPERTIES": [
|
||||
{
|
||||
"NAME": "uname -r",
|
||||
"VALUE": "3.10.0-862.11.6.el7.x86_64"
|
||||
},
|
||||
{
|
||||
"NAME": "cat /etc/centos-release",
|
||||
"VALUE": "CentOS Linux release 7.5.1804 (Core) "
|
||||
}
|
||||
]
|
||||
}
|
Binary file not shown.
@ -0,0 +1,37 @@
|
||||
-----BEGIN ATTRIBUTE CERTIFICATE-----
|
||||
MIIHuzCCBqMCAQEwc6BxMFmkVzBVMQswCQYDVQQGEwJDSDEeMBwGA1UEChMVU1RNaWNyb2VsZWN0
|
||||
cm9uaWNzIE5WMSYwJAYDVQQDEx1TVE0gVFBNIEVLIEludGVybWVkaWF0ZSBDQSAwMgIUS5gujeW5
|
||||
kYvYdMJZlIUT6s3F0cygOjA4pDYwNDELMAkGA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