Enum AdditionalServiceInformation

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

public enum AdditionalServiceInformation extends Enum<AdditionalServiceInformation>
This enumeration represents an AdditionalServiceInformation element content present in a Trusted List
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSeals": in order to further specify the "Service type identifier" identified service as being provided for electronic seals;
    "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures": in order to further specify the "Service type identifier" identified service as being provided for electronic signatures;
    "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForWebSiteAuthentication": in order to further specify the "Service type identifier" identified service as being provided for web site authentication;
  • Method Summary

    Modifier and Type
    Method
    Description
    This method returns AdditionalServiceInformation for the given uri
    Gets URI of the AdditionalServiceInformation
    static boolean
    isForeSeals(String additionalServiceInfo)
    Checks if the given additional service info is "for eSeals" identifier
    static boolean
    isForeSeals(List<String> additionalServiceInfos)
    Checks if the given list of additional service infos contains "for eSeals" identifier
    static boolean
    isForeSealsOnly(List<String> additionalServiceInfos)
    Checks if the given list of additional service infos only contains "for eSeals" identifier
    static boolean
    isForeSignatures(String additionalServiceInfo)
    Checks if the given additional service info is "for eSignatures" identifier
    static boolean
    isForeSignatures(List<String> additionalServiceInfos)
    Checks if the given list of additional service infos contains "for eSignatures" identifier
    static boolean
    isForeSignaturesOnly(List<String> additionalServiceInfos)
    Checks if the given list of additional service infos only contains "for eSignatures" identifier
    static boolean
    isForWebAuth(String additionalServiceInfo)
    Checks if the given additional service info is "for web authentication" identifier
    static boolean
    isForWebAuth(List<String> additionalServiceInfos)
    Checks if the given list of additional service infos contains "for web authentication" identifier
    static boolean
    isForWebAuthOnly(List<String> additionalServiceInfos)
    Checks if the given list of additional service infos only contains "for web authentication" 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

    • FOR_ESIGNATURES

      public static final AdditionalServiceInformation FOR_ESIGNATURES
      "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSignatures": in order to further specify the "Service type identifier" identified service as being provided for electronic signatures;
    • FOR_ESEALS

      public static final AdditionalServiceInformation FOR_ESEALS
      "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForeSeals": in order to further specify the "Service type identifier" identified service as being provided for electronic seals;
    • FOR_WEB_AUTHENTICATION

      public static final AdditionalServiceInformation FOR_WEB_AUTHENTICATION
      "http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/ForWebSiteAuthentication": in order to further specify the "Service type identifier" identified service as being provided for web site authentication;
  • Method Details

    • values

      public static AdditionalServiceInformation[] 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 AdditionalServiceInformation 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 AdditionalServiceInformation getByUri(String uri)
      This method returns AdditionalServiceInformation for the given uri
      Parameters:
      uri - String to get AdditionalServiceInformation for
      Returns:
      AdditionalServiceInformation if exists, null otherwise
    • isForeSignatures

      public static boolean isForeSignatures(String additionalServiceInfo)
      Checks if the given additional service info is "for eSignatures" identifier
      Parameters:
      additionalServiceInfo - Strings to verify
      Returns:
      TRUE if the "for eSignatures" identifier, FALSE otherwise
    • isForeSeals

      public static boolean isForeSeals(String additionalServiceInfo)
      Checks if the given additional service info is "for eSeals" identifier
      Parameters:
      additionalServiceInfo - Strings to verify
      Returns:
      TRUE if the "for eSeals" identifier, FALSE otherwise
    • isForWebAuth

      public static boolean isForWebAuth(String additionalServiceInfo)
      Checks if the given additional service info is "for web authentication" identifier
      Parameters:
      additionalServiceInfo - Strings to verify
      Returns:
      TRUE if the "for web authentication" identifier, FALSE otherwise
    • isForeSignatures

      public static boolean isForeSignatures(List<String> additionalServiceInfos)
      Checks if the given list of additional service infos contains "for eSignatures" identifier
      Parameters:
      additionalServiceInfos - a list of Strings to verify
      Returns:
      TRUE if the list contains "for eSignatures" identifier, FALSE otherwise
    • isForeSeals

      public static boolean isForeSeals(List<String> additionalServiceInfos)
      Checks if the given list of additional service infos contains "for eSeals" identifier
      Parameters:
      additionalServiceInfos - a list of Strings to verify
      Returns:
      TRUE if the list contains "for eSeals" identifier, FALSE otherwise
    • isForWebAuth

      public static boolean isForWebAuth(List<String> additionalServiceInfos)
      Checks if the given list of additional service infos contains "for web authentication" identifier
      Parameters:
      additionalServiceInfos - a list of Strings to verify
      Returns:
      TRUE if the list contains "for web authentication" identifier, FALSE otherwise
    • isForeSignaturesOnly

      public static boolean isForeSignaturesOnly(List<String> additionalServiceInfos)
      Checks if the given list of additional service infos only contains "for eSignatures" identifier
      Parameters:
      additionalServiceInfos - a list of Strings to verify
      Returns:
      TRUE if the list only contains "for eSignatures" identifier, FALSE otherwise
    • isForeSealsOnly

      public static boolean isForeSealsOnly(List<String> additionalServiceInfos)
      Checks if the given list of additional service infos only contains "for eSeals" identifier
      Parameters:
      additionalServiceInfos - a list of Strings to verify
      Returns:
      TRUE if the list only contains "for eSeals" identifier, FALSE otherwise
    • isForWebAuthOnly

      public static boolean isForWebAuthOnly(List<String> additionalServiceInfos)
      Checks if the given list of additional service infos only contains "for web authentication" identifier
      Parameters:
      additionalServiceInfos - a list of Strings to verify
      Returns:
      TRUE if the list only contains "for web authentication" identifier, FALSE otherwise