Class AppVerifierErrorMessages

java.lang.Object
com.microej.util.appverifier.AppVerifierErrorMessages

public class AppVerifierErrorMessages extends Object
Defines the error message identifiers reported by the application verifier and builds their messages.
Since:
1.0.0
  • Field Details

    • APPVERIFIER_LOG_ENABLED

      public static final String APPVERIFIER_LOG_ENABLED
      The BON constant to enable or disable logs.
      See Also:
    • APPVERIFIER_TRUSTED_CAS_PATH

      public static final String APPVERIFIER_TRUSTED_CAS_PATH
      The BON constant holding the storage ID of the trusted CAs file loaded by DefaultCertificateChainValidator.fromResource().
      See Also:
    • INVALID_APPLICATION_FORMAT

      public static final int INVALID_APPLICATION_FORMAT
      The signed Application format is not valid.
      See Also:
    • UNSUPPORTED_SIGNED_APPLICATION_VERSION

      public static final int UNSUPPORTED_SIGNED_APPLICATION_VERSION
      The signed Application version is not supported.
      See Also:
    • UNSUPPORTED_INSTALL_VERSION

      public static final int UNSUPPORTED_INSTALL_VERSION
      The 'install' request version is not supported.
      See Also:
    • UNSUPPORTED_SIGNATURE_ALGORITHM

      public static final int UNSUPPORTED_SIGNATURE_ALGORITHM
      The signature algorithm is not supported.
      See Also:
    • INCONSISTENT_LENGTH

      public static final int INCONSISTENT_LENGTH
      The length of the input stream is inconsistent.
      See Also:
    • INVALID_SIGNATURE

      public static final int INVALID_SIGNATURE
      The signature is not valid.
      See Also:
    • NO_TRUSTED_CERTIFICATES

      public static final int NO_TRUSTED_CERTIFICATES
      No trusted certificates are provided or matched.
      See Also:
    • SIGNATURE_VERIFICATION_FAILED

      public static final int SIGNATURE_VERIFICATION_FAILED
      The 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_AUTHORIZED
      The certificate chain was verified but not authorized.
      See Also:
    • INVALID_PUBLIC_KEY

      public static final int INVALID_PUBLIC_KEY
      The key is null or not a public key.
      See Also:
    • NO_CERTIFICATE

      public static final int NO_CERTIFICATE
      The certificate is null.
      See Also:
    • CATEGORY

      public static final String CATEGORY
      Error messages category.
      See Also:
    • CERTIFICATE_TYPE_X509

      public static final String CERTIFICATE_TYPE_X509
      The X.509 certificate type, as passed to CertificateFactory.getInstance(String).
      See Also:
  • Method Details

    • getMessage

      public static String getMessage(char level, String category, int id, Object... arguments)
      Builds the message identified by the given level, category and identifier.
      Parameters:
      level - the message level (see Level).
      category - the message category.
      id - the message identifier.
      arguments - the arguments to include in the message, if any.
      Returns:
      the built message.