Enum Class TrustServiceStatus

java.lang.Object
java.lang.Enum<TrustServiceStatus>
eu.europa.esig.dss.validation.process.qualification.trust.TrustServiceStatus
All Implemented Interfaces:
Serializable, Comparable<TrustServiceStatus>, Constable

public enum TrustServiceStatus extends Enum<TrustServiceStatus>
ETSI TS 119 612 V2.2.1
  • Enum Constant Details

    • UNDER_SUPERVISION

      public static final TrustServiceStatus UNDER_SUPERVISION
      Before eIDAS 'undersupervision' status
    • SUPERVISION_OF_SERVICE_IN_CESSATION

      public static final TrustServiceStatus SUPERVISION_OF_SERVICE_IN_CESSATION
      Before eIDAS 'supervisionincessation' status
    • SUPERVISION_CEASED

      public static final TrustServiceStatus SUPERVISION_CEASED
      Before eIDAS 'supervisionceased' status
    • SUPERVISION_REVOKED

      public static final TrustServiceStatus SUPERVISION_REVOKED
      Before eIDAS 'supervisionrevoked' status
    • ACCREDITED

      public static final TrustServiceStatus ACCREDITED
      Before eIDAS 'accredited' status
    • ACCREDITATION_CEASED

      public static final TrustServiceStatus ACCREDITATION_CEASED
      Before eIDAS 'accreditationceased' status
    • ACCREDITATION_REVOKED

      public static final TrustServiceStatus ACCREDITATION_REVOKED
      Before eIDAS 'accreditationrevoked' status
    • GRANTED

      public static final TrustServiceStatus GRANTED
      After eIDAS 'granted' status
    • WITHDRAWN

      public static final TrustServiceStatus WITHDRAWN
      After eIDAS 'withdrawn' status
    • SET_BY_NATIONAL_LAW

      public static final TrustServiceStatus SET_BY_NATIONAL_LAW
      After eIDAS 'setbynationallaw' status
    • RECONIZED_AT_NATIONAL_LEVEL

      public static final TrustServiceStatus RECONIZED_AT_NATIONAL_LEVEL
      After eIDAS 'recognisedatnationallevel' status
    • DEPRECATED_BY_NATIONAL_LAW

      public static final TrustServiceStatus DEPRECATED_BY_NATIONAL_LAW
      After eIDAS 'deprecatedbynationallaw' status
    • DEPRECATED_AT_NATIONAL_LEVEL

      public static final TrustServiceStatus DEPRECATED_AT_NATIONAL_LEVEL
      After eIDAS 'deprecatedatnationallevel' status
  • Method Details

    • values

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

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

      public String getShortName()
      Gets the user-friendly label
      Returns:
      String
    • getUri

      public String getUri()
      Gets the URI
      Returns:
      String
    • isPreEidas

      public boolean isPreEidas()
      Whether the status is related to pre-eIDAS.
      Returns:
      TRUE if the status is related to pre-eIDAS, FALSE otherwise
    • isPostEidas

      public boolean isPostEidas()
      Whether the status is related to post-eIDAS.
      Returns:
      TRUE if the status is related to post-eIDAS, FALSE otherwise
    • isValid

      public boolean isValid()
      Whether the status identifies a valid trust service
      Returns:
      whether the status identifies a valid trust service
    • isAcceptableStatusBeforeEIDAS

      public static boolean isAcceptableStatusBeforeEIDAS(String uri)
      Gets whether the given status is acceptable before eIDAS
      Parameters:
      uri - String identifying the trust service status
      Returns:
      TRUE if the status is acceptable before eIDAS, FALSE otherwise
    • isAcceptableStatusAfterEIDAS

      public static boolean isAcceptableStatusAfterEIDAS(String uri)
      Gets whether the given status is acceptable after eIDAS
      Parameters:
      uri - String identifying the trust service status
      Returns:
      TRUE if the status is acceptable after eIDAS, FALSE otherwise
    • isSetByNationalLawAfterEIDAS

      public static boolean isSetByNationalLawAfterEIDAS(String uri)
      Gets whether the given status is set by national law after eIDAS
      Parameters:
      uri - String identifying the trust service status
      Returns:
      TRUE if the status is set by national law after eIDAS, FALSE otherwise
    • isRecognizedAtNationalLevelAfterEIDAS

      public static boolean isRecognizedAtNationalLevelAfterEIDAS(String uri)
      Gets whether the given status is recognized at national level after eIDAS
      Parameters:
      uri - String identifying the trust service status
      Returns:
      TRUE if the status is recognized at national level after eIDAS, FALSE otherwise
    • fromUri

      public static TrustServiceStatus fromUri(String uri)
      This method returns a corresponding TrustServiceStatus by the given uri
      Parameters:
      uri - String to get TrustServiceStatus for
      Returns:
      TrustServiceStatus