Class ServiceInformation
- java.lang.Object
-
- es.gob.afirma.tsl.parsing.impl.common.ServiceHistoryInstance
-
- es.gob.afirma.tsl.parsing.impl.common.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 Summary
Constructors Constructor Description ServiceInformation()Constructor method for the class ServiceInformation.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewSchemeServiceDefinitionURI(java.lang.String language, java.net.URI ssdUri)Adds a new URI with the specified language to the scheme service definitions.voidaddNewServiceDefinitionURI(java.lang.String language, java.net.URI sdUri)Adds a new URI with the specified language to the TSP definitions.voidaddNewServiceSupplyPointURI(java.net.URI sspUri)Add new service supply point URI.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.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.java.util.List<java.net.URI>getServiceSupplyPoints()Gets an array with the Service Supply Points URI.booleanisThereSomeSchemeServiceDefinitionURI()Checks if exists at least one scheme service definition URI.booleanisThereSomeServiceDefinitionURI()Checks if exists at least one TSP definition URI.booleanisThereSomeServiceSupplyPointURI()Checks if there is at least one service supply point.-
Methods inherited from class es.gob.afirma.tsl.parsing.impl.common.ServiceHistoryInstance
addNewDigitalIdentity, addNewServiceInformationExtension, addNewServiceName, getAllDigitalIdentities, getServiceInformationExtensions, getServiceNameInLanguage, getServiceNames, getServiceStatus, getServiceStatusStartingTime, getServiceTypeIdentifier, isServiceValidAndUsable, isThereSomeIdentity, isThereSomeServiceInformationExtension, isThereSomeServiceName, setServiceStatus, setServiceStatusStartingTime, setServiceTypeIdentifier, setServiceValidAndUsable
-
-
-
-
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.
nullif 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:
trueif there is, otherwisefalse.
-
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.
nullif 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:
trueif there is, otherwisefalse.
-
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.
nullif 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:
trueif there is, otherwisefalse.
-
-