Expand description
Implements validation status for specific parts of a manifest.
Constants§
- ACTION_
ASSERTION_ INGREDIENT_ MISMATCH - An action that requires an associated ingredient either does not have one or the one specified cannot be located
- ACTION_
ASSERTION_ REDACTED - An
action
assertion was redacted when the ingredient’s claim was created. - ALGORITHM_
UNSUPPORTED - The value of an
alg
header, or other header that specifies an algorithm used to compute the value of another field, is unknown or unsupported. - ASSERTION_
ACCESSIBLE - A non-embedded (remote) assertion was accessible at the time of validation.
- ASSERTION_
BMFFHASH_ MATCH - Hash of a box-based asset matches the hash declared in the BMFF hash assertion.
- ASSERTION_
BMFFHASH_ MISMATCH - The hash of a box-based asset does not match the hash declared in the BMFF hash assertion.
- ASSERTION_
BOXHASH_ MATCH - Hash of a box-based asset matches the hash declared in the General Box Hash assertion.
- ASSERTION_
BOXHASH_ MISMATCH - The hash of a box-based asset does not match the hash declared in the General Boxes hash assertion.
- ASSERTION_
BOXHASH_ UNKNOWN - The hash of a box-based asset does not contain boxes in the expected order for the General Boxes hash assertion.
- ASSERTION_
CBOR_ INVALID - The cbor of an assertion is not valid.
- ASSERTION_
CLOUD_ DATA_ ACTIONS - An update manifest contains a cloud data assertion referencing an actions assertion.
- ASSERTION_
CLOUD_ DATA_ HARD_ BINDING - A hard binding assertion is in a cloud data assertion.
- ASSERTION_
DATAHASH_ MATCH - Hash of a byte range of the asset matches the hash declared in the data hash assertion.
- ASSERTION_
DATAHASH_ MISMATCH - The hash of a byte range of the asset does not match the hash declared in the data hash assertion.
- ASSERTION_
HASHEDURI_ MATCH - The hash of the the referenced assertion in the ingredient’s manifest matches the corresponding hash in the assertion’s hashed URI in the claim.
- ASSERTION_
HASHEDURI_ MISMATCH - The hash of the the referenced assertion in the manifest does not match the corresponding hash in the assertion’s hashed URI in the claim.
- ASSERTION_
INACCESSIBLE - A non-embedded (remote) assertion was inaccessible at the time of validation.
- ASSERTION_
JSON_ INVALID - The JSON(-LD) of an assertion is not valid.
- ASSERTION_
MISSING - An assertion listed in the ingredient’s claim is missing from the ingredient’s manifest.
- ASSERTION_
NOT_ REDACTED - An assertion was declared as redacted in the ingredient’s claim but is still present in the ingredient’s manifest.
- ASSERTION_
REQUIRED_ MISSING - A required field is not present in an assertion.
- ASSERTION_
SELF_ REDACTED - An assertion was declared as redacted by its own claim.
- ASSERTION_
UNDECLARED - An assertion was found in the ingredient’s manifest that was not explicitly declared in the ingredient’s claim.
- CLAIM_
CBOR_ INVALID - The cbor of the claim is not valid.
- CLAIM_
MISSING - The referenced claim in the ingredient’s manifest cannot be found.
- CLAIM_
MULTIPLE - More than one claim box is present in the manifest.
- CLAIM_
REQUIRED_ MISSING - A required field is not present in the claim.
- CLAIM_
SIGNATURE_ MISMATCH - The claim signature referenced in the ingredient’s claim failed to validate.
- CLAIM_
SIGNATURE_ MISSING - The claim signature referenced in the ingredient’s claim cannot be found in its manifest.
- CLAIM_
SIGNATURE_ VALIDATED - The claim signature referenced in the ingredient’s claim validated.
- GENERAL_
ERROR - A value to be used when there was an error not specifically listed here.
- HARD_
BINDINGS_ MISSING - No hard bindings are present in the claim.
- HARD_
BINDINGS_ MULTIPLE - Any corresponding URL should point to a C2PA assertion.
- INGREDIENT_
HASHEDURI_ MISMATCH - The hash of the the referenced ingredient claim in the manifest does not match the corresponding hash in the ingredient’s hashed URI in the claim.
- MANIFEST_
INACCESSIBLE - If a manifest was documented to exist in a remote location,
but is not present there, or the location is not currently available
(such as in an offline scenario),
the
manifest.inaccessible
error code shall be used to report the situation. - MANIFEST_
MULTIPLE_ PARENTS - The manifest has more than one ingredient whose
relationship
isparentOf
. - MANIFEST_
UPDATE_ INVALID - The manifest is an update manifest, but it contains hard binding or actions assertions.
- MANIFEST_
UPDATE_ WRONG_ PARENTS - The manifest is an update manifest, but it contains either zero
or multiple
parentOf
ingredients. - SIGNING_
CREDENTIAL_ EXPIRED - The signing credential has expired.
- SIGNING_
CREDENTIAL_ INVALID - The signing credential is not valid for signing.
- SIGNING_
CREDENTIAL_ REVOKED - The signing credential has been revoked by the issuer.
- SIGNING_
CREDENTIAL_ TRUSTED - The signing credential is listed on the validator’s trust list.
- SIGNING_
CREDENTIAL_ UNTRUSTED - The signing credential is not listed on the validator’s trust list.
- TIMESTAMP_
MISMATCH - The time-stamp does not correspond to the contents of the claim.
- TIMESTAMP_
OUTSIDE_ VALIDITY - The signed time-stamp attribute in the signature falls outside the validity window of the signing certificate or the TSA’s certificate.
- TIMESTAMP_
TRUSTED - The time-stamp credential is listed on the validator’s trust list.
- TIMESTAMP_
UNTRUSTED - The time-stamp credential is not listed on the validator’s trust list.
Functions§
- is_
success - Returns
true
if the status code is a known C2PA success status code. - log_
kind - Returns the
LogKind
for a given status code.