java.lang.Object
eu.europa.esig.dss.validation.process.qualification.trust.consistency.TrustServiceChecker

public final class TrustServiceChecker extends Object
Contain util method to check validity of the TrustServiceWrapper
  • Method Details

    • isLegalPersonConsistent

      public static boolean isLegalPersonConsistent(TrustServiceWrapper service)
      Checks whether the legal person identifiers within TrustServiceWrapper are consistent
      Parameters:
      service - TrustServiceWrapper
      Returns:
      TRUE if the Trusted Service is consistent, FALSE otherwise
    • isQCStatementConsistent

      public static boolean isQCStatementConsistent(TrustServiceWrapper service)
      Checks whether the QC statement identifiers within TrustServiceWrapper are consistent
      Parameters:
      service - TrustServiceWrapper
      Returns:
      TRUE if the Trusted Service is consistent, FALSE otherwise
    • isQSCDConsistent

      public static boolean isQSCDConsistent(TrustServiceWrapper service)
      Checks whether the QSCD identifiers within TrustServiceWrapper are consistent
      Parameters:
      service - TrustServiceWrapper
      Returns:
      TRUE if the Trusted Service is consistent, FALSE otherwise
    • isQSCDStatusAsInCertConsistent

      public static boolean isQSCDStatusAsInCertConsistent(TrustServiceWrapper service)
      Checks whether the QSCD as in cert identifier within TrustServiceWrapper is consistent
      Parameters:
      service - TrustServiceWrapper
      Returns:
      TRUE if the Trusted Service is consistent, FALSE otherwise
    • isPostEIDASQSCDConsistent

      public static boolean isPostEIDASQSCDConsistent(TrustServiceWrapper service)
      Checks whether the QSCD identifiers within TrustServiceWrapper are consistent for post eIDAS
      Parameters:
      service - TrustServiceWrapper
      Returns:
      TRUE if the Trusted Service is consistent, FALSE otherwise
    • isQualifiersListKnownConsistent

      public static boolean isQualifiersListKnownConsistent(TrustServiceWrapper service)
      Checks whether the found qualifiers are known bye the application
      Parameters:
      service - TrustServiceWrapper
      Returns:
      TRUE if the Trusted Service is consistent, FALSE otherwise
    • isUsageConsistent

      public static boolean isUsageConsistent(TrustServiceWrapper service)
      Checks whether the usage type identifiers within TrustServiceWrapper are consistent
      Parameters:
      service - TrustServiceWrapper
      Returns:
      TRUE if the Trusted Service is consistent, FALSE otherwise
    • isPreEIDASStatusConsistent

      public static boolean isPreEIDASStatusConsistent(TrustServiceWrapper service)
      Checks whether the statuses before eIDAS within TrustServiceWrapper are consistent
      Parameters:
      service - TrustServiceWrapper
      Returns:
      TRUE if the Trusted Service is consistent, FALSE otherwise
    • isPreEIDASQualifierAndAdditionalServiceInfoConsistent

      public static boolean isPreEIDASQualifierAndAdditionalServiceInfoConsistent(TrustServiceWrapper service)
      Checks whether the qualifiers and additional service information before eIDAS within TrustServiceWrapper are consistent
      Parameters:
      service - TrustServiceWrapper
      Returns:
      TRUE if the Trusted Service is consistent, FALSE otherwise
    • isQualifierAndAdditionalServiceInfoConsistent

      public static boolean isQualifierAndAdditionalServiceInfoConsistent(TrustServiceWrapper service)
      Checks whether the qualifiers and additional service information are consistent
      Parameters:
      service - TrustServiceWrapper
      Returns:
      TRUE if the Trusted Service is consistent, FALSE otherwise