Class ComponentCanonicalizer
java.lang.Object
paccor.normalization.ComponentCanonicalizer
Converts components to their canonical form by applying value translators to every trait.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComponentCanonicalizerSynonym, case, whitespace, and PCI ID translation.static final ComponentCanonicalizerNo translation: values compare exactly as encoded.static final Set<org.bouncycastle.asn1.ASN1ObjectIdentifier> Categories whose traits reference another certificate rather than describe the hardware. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanonicalize(TraitMap component) canonicalTraits(TraitMap traits)
-
Field Details
-
REFERENCE_CATEGORIES
Categories whose traits reference another certificate rather than describe the hardware. -
RAW
No translation: values compare exactly as encoded. -
NORMALIZED
Synonym, case, whitespace, and PCI ID translation.
-
-
Constructor Details
-
ComponentCanonicalizer
-
-
Method Details
-
canonicalize
- Parameters:
component- component traits- Returns:
- the component with every trait translated and split into hardware and reference traits
-
canonicalTraits
- Parameters:
traits- trait map- Returns:
- every trait translated, in order
-