Package com.bfo.box
Enum Class C2PAStatus.Code
- All Implemented Interfaces:
Serializable
,Comparable<C2PAStatus.Code>
,java.lang.constant.Constable
- Enclosing class:
- C2PAStatus
An enum listing the predefined
status code
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Return the official code of the status codeReturn the description from the specification for this status codeboolean
isError()
Return true if this status code is an errorboolean
isOK()
Return true if this status code is not an errortoString()
Return the official code of the status codestatic C2PAStatus.Code
Returns the enum constant of this class with the specified name.static C2PAStatus.Code[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
claimSignature_validated
-
signingCredential_trusted
-
timeStamp_trusted
-
assertion_hashedURI_match
-
assertion_dataHash_match
-
assertion_bmffHash_match
-
assertion_accessible
-
claim_missing
-
claim_multiple
-
claim_hardBindings_missing
-
claim_required_missing
-
claim_cbor_invalid
-
ingredient_hashedURI_mismatch
-
claimSignature_missing
-
claimSignature_mismatch
-
manifest_multipleParents
-
manifest_update_invalid
-
manifest_update_wrongParents
-
signingCredential_untrusted
-
signingCredential_invalid
-
signingCredential_revoked
-
signingCredential_expired
-
timeStamp_mismatch
-
timeStamp_untrusted
-
timeStamp_outsideValidity
-
assertion_hashedURI_mismatch
-
assertion_missing
-
assertion_multipleHardBindings
-
assertion_undeclared
-
assertion_inaccessible
-
assertion_notRedacted
-
assertion_selfRedacted
-
assertion_required_missing
-
assertion_json_invalid
-
assertion_cbor_invalid
-
assertion_action_ingredientMismatch
-
assertion_action_redacted
-
assertion_dataHash_mismatch
-
assertion_bmffHash_mismatch
-
assertion_cloud_data_hardBinding
-
assertion_cloud_data_actions
-
algorithm_unsupported
-
general_error
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
Return the official code of the status code- Overrides:
toString
in classEnum<C2PAStatus.Code>
- Returns:
- the code
-
getCode
Return the official code of the status code- Returns:
- the code
-
isError
public boolean isError()Return true if this status code is an error- Returns:
- whether this status is an error
-
isOK
public boolean isOK()Return true if this status code is not an error- Returns:
- whether this status is not an error
-
getDescription
Return the description from the specification for this status code- Returns:
- the description
-