/** * DSS - Digital Signature Services * Copyright (C) 2015 European Commission, provided under the CEF programme * * This file is part of the "DSS - Digital Signature Services" project. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ package eu.europa.esig.dss.validation.process; public enum MessageTag { /* BBB -> FC */ BBB_FC_IEFF("Is the expected format found?"), BBB_FC_IEFF_ANS("The expected format is not found!"), BBB_FC_IECTF("Is the expected container type found?"), BBB_FC_IECTF_ANS("The expected container type is not found!"), BBB_FC_ITZCP("Is the zip comment present?"), BBB_FC_ITZCP_ANS("The zip comment is absent!"), BBB_FC_ITEZCF("Is the expected zip comment found?"), BBB_FC_ITEZCF_ANS("The expected zip comment is not found!"), BBB_FC_ITMFP("Is the mimetype file present?"), BBB_FC_ITMFP_ANS("The mimetype file is absent!"), BBB_FC_IEMCF("Is the expected mimetype content found?"), BBB_FC_IEMCF_ANS("The expected mimetype content is not found!"), BBB_FC_IMFP_ASICE("Is the manifest file present (ASiC-E)?"), BBB_FC_IMFP_ASICE_ANS("The manifest file is absent!"), BBB_FC_IMFP_ASICS("Is the manifest file absent (ASiC-S)?"), BBB_FC_IMFP_ASICS_ANS("The manifest file is present!"), /* BBB -> CV */ BBB_CV_IRDOF("Is the reference data object(s) found?"), BBB_CV_IRDOF_ANS("The reference data object(s) is not found!"), BBB_CV_IRDOI("Is the reference data object(s) intact?"), BBB_CV_IRDOI_ANS("The reference data object(s) is not intact!"), BBB_CV_ISI("Is the signature intact?"), BBB_CV_ISI_ANS("The signature is not intact!"), BBB_CV_IAFS("Is all files signed?"), BBB_CV_IAFS_ANS("All files are not signed!"), /* BBB -> ICS */ BBB_ICS_ISCI("Is there an identified candidate for the signing certificate?"), BBB_ICS_ISCI_ANS("There is no candidate for the signing certificate!"), BBB_ICS_ISCS("Is the signing certificate signed?"), BBB_ICS_ISCS_ANS("The signing certificate is not signed!"), BBB_ICS_ISASCP("Is the signed attribute: 'signing-certificate' present?"), BBB_ICS_ISASCP_ANS("The signed attribute: 'signing-certificate' is absent!"), BBB_ICS_ISACDP("Is the signed attribute: 'cert-digest' of the certificate present?"), BBB_ICS_ISACDP_ANS("The signed attribute: 'cert-digest' is absent!"), BBB_ICS_ICDVV("Is the certificate's digest value valid?"), BBB_ICS_ICDVV_ANS("The signing certificate digest value does not match!"), BBB_ICS_AIDNASNE("Are the issuer distinguished name and the serial number equal?"), BBB_ICS_AIDNASNE_ANS("The 'issuer-serial' attribute is absent or does not match!"), /* BBB -> RFC */ BBB_RFC_NUP("Is there a Next Update defined for the revocation data?"), BBB_RFC_NUP_ANS("There is no Next Update defined for the revocation data!"), BBB_RFC_IRIF("Is the revocation information fresh for the certificate?"), BBB_RFC_IRIF_ANS("The revocation status information is not considered as 'fresh'."), /* BBB -> SAV -> TSP*/ BBB_SAV_TSP_IMIDF("Is message imprint data found?"), BBB_SAV_TSP_IMIDF_ANS("The timestamp message imprint data is not found!"), BBB_SAV_TSP_IMIVC("Is message imprint verification conclusive?"), BBB_SAV_TSP_IMIVC_ANS("The timestamp message imprint verification has failed!"), ADEST_ITVPC("Is timestamp validation process conclusive?"), ADEST_ITVPC_ANS_1("The timestamp is rejected, its generation time is before the best-signature-time!"), ADEST_ITVPC_INFO_1("The best-signature-time was set to the generation time of the timestamp."), ADEST_ITVPC_ANS_2("Timestamp validation is not conclusive!"), ADEST_ROBVPIIC("Is the result of the Basic Validation Process conclusive?"), ADEST_ROBVPIIC_ANS("The result of the Basic validation process is not conclusive!"), ADEST_ROTVPIIC("Is the result of the timestamps validation process conclusive?"), ADEST_ROTVPIIC_ANS("The result of the timestamps validation process is not conclusive!"), ADEST_RORPIIC("Is the result of the revocation data validation process acceptable?"), ADEST_RORPIIC_ANS("The result of the revocation data validation process is not acceptable!"), LTV_ABSV("Is the result of the Basic Validation Process acceptable?"), LTV_ABSV_ANS("The result of the Basic validation process is not acceptable to continue the process!"), ARCH_LTVV("Is the result of the LTV validation process acceptable?"), ARCH_LTVV_ANS("The result of the LTV validation process is not acceptable to continue the process!"), ASCCM("Are signature cryptographic constraints met?"), ASCCM_ANS_1("The encryption algorithm not authorised!"), ASCCM_ANS_2("The digest algorithm not authorised!"), ASCCM_ANS_3("The public key size is too small!"), ASCCM_ANS_4("The algorithm expiration date not found!"), ASCCM_ANS_5("The algorithm is expired!"), BBB_SAV_ISSV("Is the structure of the signature valid?"), BBB_SAV_ISSV_ANS("The structure of the signature is not valid!"), BBB_SAV_ICERRM("Is the requested certified role present?"), BBB_SAV_ICERRM_ANS("The requested certified role is not present!"), BBB_SAV_ICRM("Is the requested claimed role present?"), BBB_SAV_ICRM_ANS("The requested claimed role is not present!"), BBB_SAV_ISQPCTP("Is signed qualifying property: 'content-type' present?"), BBB_SAV_ISQPCTP_ANS("The signed qualifying property: 'content-type' is not present!"), BBB_SAV_ISQPCHP("Is signed qualifying property: 'content-hints' present?"), BBB_SAV_ISQPCHP_ANS("The signed qualifying property: 'content-hints' is not present!"), BBB_SAV_ISQPCIP("Is signed qualifying properties: 'content-identifier' present?"), BBB_SAV_ISQPCIP_ANS("The signed qualifying property: 'content-identifier' is not present!"), BBB_SAV_ISQPCTSIP("Is signed qualifying property: 'content-timestamp' present?"), BBB_SAV_ISQPCTSIP_ANS("The signed qualifying property: 'content-timestamp' is not present!"), BBB_SAV_ISQPSLP("Is signed qualifying property: 'signer-location' present?"), BBB_SAV_ISQPSLP_ANS("The signed qualifying property: 'signer-location' is not present!"), BBB_SAV_ISQPSTP("Is signed qualifying property: 'signing-time' present?"), BBB_SAV_ISQPSTP_ANS("The signed qualifying property: 'signing-time' is not present!"), BBB_SAV_ISQPXTIP("Is signed qualifying property: 'commitment-type-indication' present?"), BBB_SAV_ISQPXTIP_ANS("The signed qualifying property: 'commitment-type-indication' is not present!"), BBB_SAV_IUQPCSP("Is unsigned qualifying property: 'countersignature' present?"), BBB_SAV_IUQPCSP_ANS("The unsigned qualifying property: 'countersignature' is not present!"), BBB_VCI_ISPK("Is the signature policy known?"), BBB_VCI_ISPK_ANS_1("The signature policy is mandatory!"), BBB_VCI_ISPA("Is the signature policy available?"), BBB_VCI_ISPA_ANS("The signature policy is not available!"), BBB_VCI_ISPM("Is the signature policy's hash match?"), BBB_VCI_ISPM_ANS("The signature policy's hash doesn't match the computed one!"), BBB_XCV_SUB("Is the certificate validation concluant ?"), BBB_XCV_SUB_ANS("The certificate validation is not concluant!"), BBB_XCV_RFC("Is the revocation freshness check concluant ?"), BBB_XCV_RFC_ANS("The revocation freshness check is not concluant!"), BBB_XCV_ACCCM("Are chain cryptographic constraints met?"), BBB_XCV_ACCM("Are chain constraints met?"), BBB_XCV_ARDCCM("Are revocation data cryptographic constraints met?"), BBB_XCV_CCCBB("Can the certificate chain be built till the trust anchor?"), BBB_XCV_CCCBB_ANS("The certificate chain is not trusted, there is no trusted anchor."), BBB_XCV_CCCBB_SIG_ANS("The certificate chain for signature is not trusted, there is no trusted anchor."), BBB_XCV_CCCBB_TSP_ANS("The certificate chain for timestamp is not trusted, there is no trusted anchor."), BBB_XCV_CCCBB_REV_ANS("The certificate chain for revocation data is not trusted, there is no trusted anchor."), BBB_XCV_CMDCIPI("Certificate meta-data constraints: Is contain required policy ids?"), BBB_XCV_CMDCIPI_ANS("The certificate has not required policy ids."), BBB_XCV_CMDCIQCS("Certificate meta-data constraints: Is contain required QC Statement ids?"), BBB_XCV_CMDCIQCS_ANS("The certificate has not required QC Statement ids."), BBB_XCV_CMDCIITLP("Certificate meta-data constraints: Is issued to a legal person?"), BBB_XCV_CMDCIITLP_ANS("The certificate is not issued to a legal person."), BBB_XCV_CMDCIITNP("Certificate meta-data constraints: Is issued to a natural person?"), BBB_XCV_CMDCIITNP_ANS("The certificate is not issued to a natural person."), BBB_XCV_CMDCIQC("Certificate meta-data constraints: Is the signer's certificate qualified?"), BBB_XCV_CMDCIQC_ANS("The certificate is not qualified!"), BBB_XCV_CMDCIQSCD("Certificate meta-data constraints: Is supported by QSCD?"), BBB_XCV_CMDCIQSCD_ANS("The certificate is not supported by QSCD!"), BBB_XCV_ICTIVRSC("Is the current time in the validity range of the signer's certificate?"), BBB_XCV_ICTIVRSC_ANS("The current time is not in the validity range of the signer's certificate."), BBB_XCV_IRDPFC("Is the revocation data present for the certificate?"), BBB_XCV_IRDPFC_ANS("No revocation data for the certificate"), BBB_VTS_IRDPFC("Is there a satisfying revocation status information ?"), BBB_VTS_IRDPFC_ANS("No satisfying revocation status information found for the certificate"), BBB_XCV_IRDTFC("Is the revocation data trusted for the certificate?"), BBB_XCV_IRDTFC_ANS("The revocation data for the certificate is not trusted!"), BBB_XCV_IRIF("Is the revocation information fresh for the certificate?"), BBB_XCV_IRIF_ANS("The revocation status information is not considered as 'fresh'."), BBB_XCV_ISCOH("Is the certificate on hold?"), BBB_XCV_ISCOH_ANS("The certificate is on hold!"), BBB_XCV_ISCR("Is the certificate not revoked?"), BBB_XCV_ISCR_ANS("The certificate is revoked!"), BBB_XCV_ISCGKU("Has the signer's certificate given key-usage?"), BBB_XCV_ISCGKU_ANS("The signer's certificate has not expected key-usage!"), BBB_XCV_ICSI("Is the certificate's signature intact?"), BBB_XCV_ICSI_ANS("The signature of the certificate is spoiled or it is not possible to validate it!"), BBB_XCV_OCSP_NO_CHECK("The certificate has the id-pkix-ocsp-nocheck extension (RFC is skipped)"), BBB_XCV_PSEUDO_USE("Is pseudo used ?"), BBB_XCV_PSEUDO_USE_ANS("A pseudonym is used"), BBB_XCV_AIA_PRES("Is authority info access present?"), BBB_XCV_AIA_PRES_ANS("Authority info access is not present!"), BBB_XCV_REVOC_PRES("Is revocation info access present?"), BBB_XCV_REVOC_PRES_ANS("Revocation info access is not present!"), BBB_XCV_ISCGCOUN("Has the certificate given country-name?"), BBB_XCV_ISCGCOUN_ANS("The certificate has not expected country-name!"), BBB_XCV_ISCGORGAN("Has the certificate given organization name?"), BBB_XCV_ISCGORGAN_ANS("The certificate has not expected organization name!"), BBB_XCV_ISCGORGAU("Has the certificate given organization unit?"), BBB_XCV_ISCGORGAU_ANS("The certificate has not expected organization unit!"), BBB_XCV_ISCGSURN("Has the certificate given surname?"), BBB_XCV_ISCGSURN_ANS("The certificate has not expected surname!"), BBB_XCV_ISCGGIVEN("Has the certificate given given name?"), BBB_XCV_ISCGGIVEN_ANS("The certificate has not expected given name!"), BBB_XCV_ISCGPSEUDO("Has the certificate given pseudonym?"), BBB_XCV_ISCGPSEUDO_ANS("The certificate has not expected pseudonym!"), BBB_XCV_ISCGCOMMONN("Has the certificate given common name?"), BBB_XCV_ISCGCOMMONN_ANS("The certificate has not expected common name!"), XCV_IFCCIIPC_ANS("The interval ['%s', '%s'] for the certificate ['%s'] is inconsistent in the prospective chain."), XCV_TSL_ESP("Is the expected trust service status present ?"), XCV_TSL_ESP_ANS("The trust service has not expected status!"), XCV_TSL_ESP_SIG_ANS("The trust service of the signing certificate has not expected status!"), XCV_TSL_ESP_TSP_ANS("The trust service of the timestamp has not expected status!"), XCV_TSL_ESP_REV_ANS("The trust service of the revocation has not expected status!"), XCV_TSL_ETIP("Is the expected trust service type identifier present ?"), XCV_TSL_ETIP_ANS("The trust service has not expected type identifier!"), XCV_TSL_ETIP_SIG_ANS("The trust service of the signing certificate has not expected type identifier!"), XCV_TSL_ETIP_TSP_ANS("The trust service of the timestamp has not expected type identifier!"), XCV_TSL_ETIP_REV_ANS("The trust service of the revocation has not expected type identifier!"), PCV_IVTSC("Is validation time sliding conclusive?"), PCV_IVTSC_ANS("The indications returned by validation time sliding sub-process."), PSV_IPCVA("Is past certificate validation acceptable?"), PSV_IPCVA_ANS("The past certificate validation is not acceptable!"), PSV_IPCVC("No POE, what is the current time validation?"), PSV_IPCVC_ANS("The current time validation is not conclusive!"), PSV_IPSVC("Is past signature validation conclusive?"), PSV_IPSVC_ANS("The past signature validation is not conclusive!"), PSV_ITPOCOBCT("Is there a POE of the certificate at (or before) control-time?"), PSV_ITPOSVAOBCT("Is there a POE of the signature value at (or before) control-time?"), PSV_ITPORDAOBCT("Is there a POE of the revocation data at (or before) control-time?"), PSV_ITPOOBCT_ANS("No Proof Of Existence found at (or before) control-time!"), TSV_ASTPTCT("Are timestamps in the right order?"), TSV_ASTPTCT_ANS("The timestamps were not generated in the right order!"), TSV_IBSTAIDOSC("Is the best-signature-time after the issuance date of the signing certificate?"), TSV_IBSTAIDOSC_ANS("The best-signature-time is before the issuance date of the signing certificate!"), TSV_ISCNVABST("Is the signing certificate not valid at the best-signature-time?"), TSV_ISCNVABST_ANS("The past signing certificate validation must be performed!"), ADEST_IRTPTBST("Is revocation time posterior to best-signature-time?"), ADEST_IRTPTBST_ANS("The revocation time is not posterior to best-signature-time!"), ADEST_VFDTAOCST_ANS("The validation failed due to the absence of claimed signing time!"), ADEST_ISTPTDABST("Is the signing-time plus the timestamp delay after the best-signature-time?"), ADEST_ISTPTDABST_ANS("The validation failed due to the timestamp delay constraint!"), TSV_WACRABST("Was the algorithm(s) considered reliable at best-signature-time?"), TSV_WACRABST_ANS("The algorithm(s) was not considered reliable at best-signature-time!"), LABEL_TINTWS("Additional assurance on the signing time may be needed to prove the validity of the signature."), LABEL_TINVTWS("There is no valid timestamp within the signature."), VTS_IRC("Is the revocation data consistant ?"), VTS_IRC_ANS("The revocation data is not consistant!"), VTS_ICTBRD("Is the issuance date before control-time ?"), VTS_ICTBRD_ANS("The issuance date of revocation data is not before control-time!"), QUAL_TL_EXP("Is the trusted list not expired ?"), QUAL_TL_EXP_ANS("The trusted list is expired!"), QUAL_TL_FRESH("Is the trusted list fresh ?"), QUAL_TL_FRESH_ANS("The trusted list is not fresh!"), QUAL_TL_VERSION("Is the trusted list has the expected version ?"), QUAL_TL_VERSION_ANS("The trusted list has not the expected version!"), QUAL_TL_WS("Is the trusted list well signed ?"), QUAL_TL_WS_ANS("The trusted list is not well signed!"), QUAL_TL_SERV_CONS("Are trust services consistent ?"), QUAL_TL_SERV_CONS_ANS0("No CA/QC Trust service found"), QUAL_TL_SERV_CONS_ANS1("Trust service not consistent! (QCStatement and NotQualified)"), QUAL_TL_SERV_CONS_ANS2("Trust service not consistent! (QCForLegalPerson and QCForeSig)"), QUAL_TL_SERV_CONS_ANS3("Trust service not consistent! (X_QSCD and NotQSCD)"), QUAL_TL_SERV_CONS_ANS4("Trust service not consistent! (incompatible usages of QCForeSig, QCForeSeal, QCForWSA)"), QUAL_TL_SERV_CONS_ANS5("Trust service not consistent! (invalid additional service info / qualifier in service before 1/7/16)"), QUAL_TL_SERV_CONS_ANS6("Trust service not consistent! (conflict between additional service info and qualifier)"), QUAL_TRUSTED_CERT_PATH("Is the certificate path trusted?"), QUAL_TRUSTED_CERT_PATH_ANS("The certificate path is not trusted!"), QUAL_TRUSTED_LIST_ACCEPT("Is the trusted list acceptable?"), QUAL_TRUSTED_LIST_ACCEPT_ANS("The trusted list is not acceptable!"), QUAL_QC_AT_ST("Is the certificate qualifed at signing time?"), QUAL_QC_AT_ST_ANS("The certificate is not qualified at signing time!"), QUAL_FOR_SIGN_AT_ST("Is the certificate for eSig at signing time?"), QUAL_FOR_SIGN_AT_ST_ANS("The certificate is not for eSig at signing time!"), QUAL_QC_AT_CC("Is the certificate qualifed at issuance time?"), QUAL_QC_AT_CC_ANS("The certificate is not qualified at issuance time!"), QUAL_UNIQUE_CERT("Is the certificate unique ?"), QUAL_UNIQUE_CERT_ANS("The certificate cannot be defined as unique!"), QUAL_QSCD_AT_ST("Is the signature/seal created by a QSCD?"), QUAL_QSCD_AT_ST_ANS("The signature/seal is not created by a QSCD!"), QUAL_IS_ADES("Is the signature/seal an acceptable AdES (ETSI EN 319 102-1) ?"), QUAL_IS_ADES_IND("The signature/seal is an INDETERMINATE AdES!"), QUAL_IS_ADES_INV("The signature/seal is not a valid AdES!"), QUAL_TL_CERT_CONS("Is the certificate consistent with the trusted list ?"), QUAL_TL_CERT_CONS_ANS1("Inconsistency in TL - Cert claimed as QC for eSeal while Q status not granted for electronic Seal"), QUAL_TL_CERT_CONS_ANS2("Inconsistency in TL - Cert claimed as QC for WSA while Q status not granted for WSA, digital signature generated with cert. for WSA considered as special case of AdESeal"), QUAL_TL_CERT_CONS_ANS3("Inconsistency in TL - Cert claimed as QC for eSig while Q status not granted for electronic Sig"), EMPTY(""); private final String message; MessageTag(final String message) { this.message = message; } /** * This method return the message associated with the tag. * * @return {@code String} message. */ public String getMessage() { return message; } @Override public String toString() { return message; } }