Enum ServiceQualification

java.lang.Object
java.lang.Enum<ServiceQualification>
eu.europa.esig.dss.enumerations.ServiceQualification
All Implemented Interfaces:
Serializable, Comparable<ServiceQualification>

public enum ServiceQualification extends Enum<ServiceQualification>
Contains qualification statuses for TrustedServices
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    NotQualified ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/NotQualified"): to indicate that no certificates identified by the applicable list of criteria are to be considered as qualified certificates.
    QCForESeal ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCForESeal"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, are issued for electronic seals;
    QCForESig ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCForESig"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, are issued for electronic signatures;
    QCForLegalPerson("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCForLegalPerson"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, are issued to legal persons;
    QCForWSA ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCForWSA"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, are issued for web site authentication;
    QCNoQSCD ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCNoQSCD"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, do not have their private key residing in a QSCD
    QCNoSSCD ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCNoSSCD"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, do not have their private key residing in an SSCD
    QCQSCDManagedOnBehalf ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCQSCDManagedOnBehalf"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, have their private key residing in a QSCD for which the generation and management of that private key is done by the qualified TSP on behalf of the entity whose identity is certified in the certificate;
    QCQSCDStatusAsInCert ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCQSCDStatusAsInCert"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, do contain proper machine processable information about whether or not their private key residing in a QSCD;
    QCSSCDStatusAsInCert ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCSSCDStatusAsInCert"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, do contain proper machine processable information about whether or not their private key residing in an SSCD;
    QCStatement ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCStatement"): to indicate that all certificates identified by the applicable list of criteria are issued as qualified certificates.
    QCWithQSCD ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCWithQSCD"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, have their private key residing in a QSCD
    QCWithSSCD ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCWithSSCD"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, have their private key residing in an SSCD
  • Method Summary

    Modifier and Type
    Method
    Description
    This method returns ServiceQualification for the given uri
    Gets URI of the AdditionalServiceInformation
    static List<String>
    Filters qualifiers containing the usage type identifiers (i.e.
    static boolean
    isNotQualified(List<String> qualifiers)
    Gets whether the list of TrustedService qualifiers contains 'NotQualified' identifier
    static boolean
    isQcForEseal(List<String> qualifiers)
    Gets whether the list of TrustedService qualifiers contains 'QCForESeal' identifier
    static boolean
    isQcForEsig(List<String> qualifiers)
    Gets whether the list of TrustedService qualifiers contains 'QCForESig' identifier
    static boolean
    Gets whether the list of TrustedService qualifiers contains 'QCForLegalPerson' identifier
    static boolean
    isQcForWSA(List<String> qualifiers)
    Gets whether the list of TrustedService qualifiers contains 'QCForWSA' identifier
    static boolean
    isQcNoQSCD(List<String> qualifiers)
    Gets whether the list of TrustedService qualifiers contains 'QCNoQSCD' identifier
    static boolean
    isQcNoSSCD(List<String> qualifiers)
    Gets whether the list of TrustedService qualifiers contains 'QCNoSSCD' identifier
    static boolean
    Gets whether the list of TrustedService qualifiers contains 'QCQSCDManagedOnBehalf' identifier
    static boolean
    Gets whether the list of TrustedService qualifiers contains 'QCQSCDStatusAsInCert' identifier
    static boolean
    Gets whether the list of TrustedService qualifiers contains 'QCSSCDStatusAsInCert' identifier
    static boolean
    isQcStatement(List<String> qualifiers)
    Gets whether the list of TrustedService qualifiers contains 'QCStatement' identifier
    static boolean
    isQcWithQSCD(List<String> qualifiers)
    Gets whether the list of TrustedService qualifiers contains 'QCWithQSCD' identifier
    static boolean
    isQcWithSSCD(List<String> qualifiers)
    Gets whether the list of TrustedService qualifiers contains 'QCWithSSCD' identifier
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • QC_STATEMENT

      public static final ServiceQualification QC_STATEMENT
      QCStatement ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCStatement"): to indicate that all certificates identified by the applicable list of criteria are issued as qualified certificates.
    • NOT_QUALIFIED

      public static final ServiceQualification NOT_QUALIFIED
      NotQualified ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/NotQualified"): to indicate that no certificates identified by the applicable list of criteria are to be considered as qualified certificates.
    • QC_WITH_SSCD

      public static final ServiceQualification QC_WITH_SSCD
      QCWithSSCD ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCWithSSCD"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, have their private key residing in an SSCD
    • QC_WITH_QSCD

      public static final ServiceQualification QC_WITH_QSCD
      QCWithQSCD ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCWithQSCD"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, have their private key residing in a QSCD
    • QC_NO_SSCD

      public static final ServiceQualification QC_NO_SSCD
      QCNoSSCD ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCNoSSCD"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, do not have their private key residing in an SSCD
    • QC_NO_QSCD

      public static final ServiceQualification QC_NO_QSCD
      QCNoQSCD ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCNoQSCD"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, do not have their private key residing in a QSCD
    • QC_SSCD_STATUS_AS_IN_CERT

      public static final ServiceQualification QC_SSCD_STATUS_AS_IN_CERT
      QCSSCDStatusAsInCert ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCSSCDStatusAsInCert"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, do contain proper machine processable information about whether or not their private key residing in an SSCD;
    • QC_QSCD_STATUS_AS_IN_CERT

      public static final ServiceQualification QC_QSCD_STATUS_AS_IN_CERT
      QCQSCDStatusAsInCert ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCQSCDStatusAsInCert"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, do contain proper machine processable information about whether or not their private key residing in a QSCD;
    • QC_QSCD_MANAGED_ON_BEHALF

      public static final ServiceQualification QC_QSCD_MANAGED_ON_BEHALF
      QCQSCDManagedOnBehalf ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCQSCDManagedOnBehalf"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, have their private key residing in a QSCD for which the generation and management of that private key is done by the qualified TSP on behalf of the entity whose identity is certified in the certificate;
    • QC_FOR_ESIG

      public static final ServiceQualification QC_FOR_ESIG
      QCForESig ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCForESig"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, are issued for electronic signatures;
    • QC_FOR_ESEAL

      public static final ServiceQualification QC_FOR_ESEAL
      QCForESeal ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCForESeal"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, are issued for electronic seals;
    • QC_FOR_WSA

      public static final ServiceQualification QC_FOR_WSA
      QCForWSA ("http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCForWSA"): to indicate that all certificates identified by the applicable list of criteria, when they are claimed or stated as being qualified, are issued for web site authentication;
  • Method Details

    • values

      public static ServiceQualification[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ServiceQualification valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getUri

      public String getUri()
      Gets URI of the AdditionalServiceInformation
      Returns:
      String
    • getByUri

      public static ServiceQualification getByUri(String uri)
      This method returns ServiceQualification for the given uri
      Parameters:
      uri - String to get ServiceQualification for
      Returns:
      ServiceQualification if exists, null otherwise
    • isQcStatement

      public static boolean isQcStatement(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCStatement' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains the 'QCStatement' identifier, FALSE otherwise
    • isNotQualified

      public static boolean isNotQualified(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'NotQualified' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains the 'NotQualified' identifier, FALSE otherwise
    • isQcNoQSCD

      public static boolean isQcNoQSCD(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCNoQSCD' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains 'QCNoQSCD' identifier, FALSE otherwise
    • isQcNoSSCD

      public static boolean isQcNoSSCD(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCNoSSCD' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains 'QCNoSSCD' identifier, FALSE otherwise
    • isQcForLegalPerson

      public static boolean isQcForLegalPerson(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCForLegalPerson' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains the 'QCForLegalPerson' identifier, FALSE otherwise
    • isQcQSCDStatusAsInCert

      public static boolean isQcQSCDStatusAsInCert(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCQSCDStatusAsInCert' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains 'QCQSCDStatusAsInCert' identifier, FALSE otherwise
    • isQcSSCDStatusAsInCert

      public static boolean isQcSSCDStatusAsInCert(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCSSCDStatusAsInCert' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains QCSSCDStatusAsInCert' identifier, FALSE otherwise
    • isQcQSCDManagedOnBehalf

      public static boolean isQcQSCDManagedOnBehalf(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCQSCDManagedOnBehalf' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains the 'QCQSCDManagedOnBehalf' identifier, FALSE otherwise
    • isQcWithQSCD

      public static boolean isQcWithQSCD(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCWithQSCD' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains 'QCWithQSCD' identifier, FALSE otherwise
    • isQcWithSSCD

      public static boolean isQcWithSSCD(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCWithSSCD' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains 'QCWithQSCD' identifier, FALSE otherwise
    • isQcForEsig

      public static boolean isQcForEsig(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCForESig' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains the 'QCForESig' identifier, FALSE otherwise
    • isQcForEseal

      public static boolean isQcForEseal(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCForESeal' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains the 'QCForESeal' identifier, FALSE otherwise
    • isQcForWSA

      public static boolean isQcForWSA(List<String> qualifiers)
      Gets whether the list of TrustedService qualifiers contains 'QCForWSA' identifier
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      TRUE if the list of qualifiers contains the 'QCForWSA' identifier, FALSE otherwise
    • getUsageQualifiers

      public static List<String> getUsageQualifiers(List<String> qualifiers)
      Filters qualifiers containing the usage type identifiers (i.e. 'QCForESig', 'QCForESeal' or 'QCForWSA')
      Parameters:
      qualifiers - list of String qualifiers extracted from a TrustedService
      Returns:
      filtered list of qualifiers containing the usage type identifiers