Package com.microej.util.appverifier
Class AppVerifierErrorMessages
java.lang.Object
com.microej.util.appverifier.AppVerifierErrorMessages
Defines the error message identifiers reported by the application verifier and builds their messages.
- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe BON constant to enable or disable logs.static final StringThe BON constant holding the storage ID of the trusted CAs file loaded byDefaultCertificateChainValidator.fromResource().static final StringError messages category.static final intThe certificate chain was verified but not authorized.static final StringThe X.509 certificate type, as passed toCertificateFactory.getInstance(String).static final intThe length of the input stream is inconsistent.static final intThe signed Application format is not valid.static final intThe key is null or not a public key.static final intThe signature is not valid.static final intThe certificate is null.static final intNo trusted certificates are provided or matched.static final intThe verification of the signature has failed (signature object not initialized, signature improperly encoded or of the wrong type, signature algorithm unable to process the input data, etc.).static final intThe 'install' request version is not supported.static final intThe signature algorithm is not supported.static final intThe signed Application version is not supported. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetMessage(char level, String category, int id, Object... arguments) Builds the message identified by the given level, category and identifier.
-
Field Details
-
APPVERIFIER_LOG_ENABLED
The BON constant to enable or disable logs.- See Also:
-
APPVERIFIER_TRUSTED_CAS_PATH
The BON constant holding the storage ID of the trusted CAs file loaded byDefaultCertificateChainValidator.fromResource().- See Also:
-
INVALID_APPLICATION_FORMAT
public static final int INVALID_APPLICATION_FORMATThe signed Application format is not valid.- See Also:
-
UNSUPPORTED_SIGNED_APPLICATION_VERSION
public static final int UNSUPPORTED_SIGNED_APPLICATION_VERSIONThe signed Application version is not supported.- See Also:
-
UNSUPPORTED_INSTALL_VERSION
public static final int UNSUPPORTED_INSTALL_VERSIONThe 'install' request version is not supported.- See Also:
-
UNSUPPORTED_SIGNATURE_ALGORITHM
public static final int UNSUPPORTED_SIGNATURE_ALGORITHMThe signature algorithm is not supported.- See Also:
-
INCONSISTENT_LENGTH
public static final int INCONSISTENT_LENGTHThe length of the input stream is inconsistent.- See Also:
-
INVALID_SIGNATURE
public static final int INVALID_SIGNATUREThe signature is not valid.- See Also:
-
NO_TRUSTED_CERTIFICATES
public static final int NO_TRUSTED_CERTIFICATESNo trusted certificates are provided or matched.- See Also:
-
SIGNATURE_VERIFICATION_FAILED
public static final int SIGNATURE_VERIFICATION_FAILEDThe verification of the signature has failed (signature object not initialized, signature improperly encoded or of the wrong type, signature algorithm unable to process the input data, etc.).- See Also:
-
CERTIFICATE_CHAIN_VERIFIED_NOT_AUTHORIZED
public static final int CERTIFICATE_CHAIN_VERIFIED_NOT_AUTHORIZEDThe certificate chain was verified but not authorized.- See Also:
-
INVALID_PUBLIC_KEY
public static final int INVALID_PUBLIC_KEYThe key is null or not a public key.- See Also:
-
NO_CERTIFICATE
public static final int NO_CERTIFICATEThe certificate is null.- See Also:
-
CATEGORY
Error messages category.- See Also:
-
CERTIFICATE_TYPE_X509
The X.509 certificate type, as passed toCertificateFactory.getInstance(String).- See Also:
-
-
Method Details
-
getMessage
Builds the message identified by the given level, category and identifier.- Parameters:
level- the message level (seeLevel).category- the message category.id- the message identifier.arguments- the arguments to include in the message, if any.- Returns:
- the built message.
-