* This is new code that parses a new field in the upcoming TCG spec for the platform components fields. The new field indicates the type of hardware (ex Memory - DDR3). This information wasn't provided before so it wasn't always clear what the component was. The new information is provided in a json file. A unit test was created to test the different variations. This commit does not include hooks in the base code to use this class yet. This commit is mainly to include the added library and correct bug and checkstyle issues associated with the new code.
Closes#24
* Removed duplicate CONSTANT variable.
* Added newline
* Added Newline
* Updated variable names for json object.
* Fixed line length style error.
* These changes are the beginning stage for spec 2 changes to the platform configuration section of the attributes platform certificate.
* Updated typos and corrected check style errors.
* Updating Platform Credential Unit test from #24
* Added unit test resource
* Updating code to list what specifically is unmatched for platform components on the validation page when there is a failure.
* Updates include a small shift for the policy page, putting the correct order for setting them (top to bottom). Updated unit tests for the additional text that now appears on the tool tip for the validation failure icon.
* This fix correct an IllegalStateException for the SupplyChainValider when all policy settings are true. When trying to remove a value from the iterator in the validator, the item was null and caused this issue. This also takes out the Platform Serial as a required field.
Closes#72
* checking in a small change that puts back in a line for checking the serial number. It has been changed from FAIL to PASS however.
* Committing updated changes.
* Committing test certs for changes.
* Updated unit tests
* Fixing travis checkstyle for URISyntaxException missing from UnitTests
* Adding new class GeneralNames, I will be changing it to adjust to the bc class as to not confuse the two. This class takes the subject string and parse out the information for comparsion.
* Adding file I didn't have tracked in the previous commit.
* Updating code to handle the instance of multiple organization units.
* A null exception was being thrown from the unit tests for the organization unit variable.
* Add some comments
* continued testing and updates are needed.
* Cleanup - removed excess commented code and debug lines.
* Updating code base to use X500Name for name compares, removing GeneralNamesParser.java file as it is not necessary
* Updated for final changes.
* Modification to previous changes per request on github. Separated out compare method into its own class and created unit tests.
* Updated code base for Attribute Certificates. They are currently not showing Authority Information Access in the Issuer field on the certificate details page. The code was not written to handle this
or to set it.
* Updated unit tests to test Authority Info Access and Key Identifier.
* Adding extra certificates to be used in the new tests.
* Updated unit test, the new tests were missing the @Test parameter.
* This change adds in additional information about the certificate, which include the public key and signature algoritms and their sizes, the key usage and extended key usage, the certificate version number for EK and CA certs and the issuer section expanded with Auth Key Id and Auth Info Access.
* Made some fixes to the platform class print out. Needs to print out string representation of the value.
* Additional changes for the certificate details page. Going over the spec determining what should be shown and what should be hidden if no information is specified.
* This change adds in additional information about the certificate, which include the public key and signature algoritms and their sizes, the key usage and extended key usage, the certificate version number for EK and CA certs and the issuer section expanded with Auth Key Id and Auth Info Access.
Made some fixes to the platform class print out. Needs to print out string representation of the value.
Additional changes for the certificate details page. Going over the spec determining what should be shown and what should be hidden if no information is specified.
Small updates to code commits and statements
* Stashing changes.
* Correcting some unit test fail instances. The PC Test fails because the tested cert is not updated to new (constantly changing) specs. Not just on the value but also on the value type.
* Fixing git merge meta data.
* Updates to include the Authority Key information as a set rather than just one item. Using a bouncy castle defined class.
* Reversed the type of variable the public key value returns so that the unit test for it doesn't have to change. The type wasn't important, it was a convenience decision.
* Adding changes based on review comments from @apldev3.
* Made changes based on github review comments.
* Additional changes for github comments
* Updated the code for the public key size on CA and EK certificates. There was a previous issue with 4 additional bytes being included in the size.
* Some more changes for Github comments
Added unit test for TPMBaseline.isEmpty(). Change exception type thrown in generator class
Added unit tests to account for both an empty and a non-empty baseline object
Checkstyle changes
DBPolicyManager's getPolicy(appraiser, device) has historically
returned the default policy for an appraiser if none is defined
in the device group that the given device belongs to. However,
this behavior does not in fact support the current use of devices,
groups, and policies; in the case where a group has no policy
assigned for a type of appraiser, the system is in a state
where that type of appraisal will not occur for devices in
a given group. To better reflect desired behavior, the method
now returns null if a policy is not explicitly set for
the given (appraiser, device group) pair.
Closes#49.
ImaAcceptableRecordBaseline and its subclasses have been updated to include
a containsHashes method to be able to match IMA measurement records
based solely on their hashes. Supporting classes have been
updated or created as necessary.
Additionally, the set of path equivalencies as specified in the IMA
policy have been updated to include additional entries.
Closes#33.