Class ServiceInformation

  • All Implemented Interfaces:
    java.io.Serializable

    public class ServiceInformation
    extends ServiceHistoryInstance

    Class that defines a TSP Service Information with all its information not dependent of the specification or TSL version.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.0, 10/11/2020.
    See Also:
    Serialized Form
    • Constructor Detail

      • ServiceInformation

        public ServiceInformation()
        Constructor method for the class ServiceInformation.java.
    • Method Detail

      • getSchemeServiceDefinitionURIs

        public final java.util.Map<java.lang.String,​java.util.List<java.net.URI>> getSchemeServiceDefinitionURIs()
        Gets the URI(s) where users (subscribers, relying parties) can obtain service-specific information provided by the scheme operator in all presented languages.
        Returns:
        Map by language with the URI. null if there is not URI.
      • addNewSchemeServiceDefinitionURI

        public final void addNewSchemeServiceDefinitionURI​(java.lang.String language,
                                                           java.net.URI ssdUri)
        Adds a new URI with the specified language to the scheme service definitions.
        Parameters:
        language - Language representation (ISO 639) for the URI.
        ssdUri - URI to add.
      • isThereSomeSchemeServiceDefinitionURI

        public final boolean isThereSomeSchemeServiceDefinitionURI()
        Checks if exists at least one scheme service definition URI.
        Returns:
        true if there is, otherwise false.
      • getServiceSupplyPoints

        public final java.util.List<java.net.URI> getServiceSupplyPoints()
        Gets an array with the Service Supply Points URI.
        Returns:
        list with the Service Supply Points URI. null if there is not.
      • addNewServiceSupplyPointURI

        public final void addNewServiceSupplyPointURI​(java.net.URI sspUri)
        Add new service supply point URI.
        Parameters:
        sspUri - URI with the new service supply point to add.
      • isThereSomeServiceSupplyPointURI

        public final boolean isThereSomeServiceSupplyPointURI()
        Checks if there is at least one service supply point.
        Returns:
        true if there is, otherwise false.
      • getServiceDefinitionURIs

        public final java.util.Map<java.lang.String,​java.util.List<java.net.URI>> getServiceDefinitionURIs()
        Gets the URI(s) where users (subscribers, relying parties) can obtain service-specific information provided by the TSP in all presented languages.
        Returns:
        Map by language with the URI. null if there is not URI.
      • addNewServiceDefinitionURI

        public final void addNewServiceDefinitionURI​(java.lang.String language,
                                                     java.net.URI sdUri)
        Adds a new URI with the specified language to the TSP definitions.
        Parameters:
        language - Language representation (ISO 639) for the URI.
        sdUri - URI to add.
      • isThereSomeServiceDefinitionURI

        public final boolean isThereSomeServiceDefinitionURI()
        Checks if exists at least one TSP definition URI.
        Returns:
        true if there is, otherwise false.