public interface ITSLObject
extends java.io.Serializable
Interface that represents a TSL object regardless it implementation.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Method and Description |
|---|---|
void |
addNewTrustServiceProvider(TrustServiceProvider tsp)
Adds a new trust service provider to the list associated to this TSL.
|
void |
buildTSLFromXMLcheckValues(java.io.InputStream is)
Method that builds the TSL data from a input XML.
|
void |
buildTSLFromXMLcheckValues(java.io.InputStream is,
boolean checkSignature)
Method that builds the TSL data from a input XML.
|
void |
checkTSLValues()
Checks all the actual values assigned to this TSL as the concrecte specification and version
requires.
|
byte[] |
checkValuesBuildXMLfromTSL()
Method that check that the data of the TSL is correct as the specification and version requires.
|
java.lang.String |
getID()
Gets the ID attribute from the TrustServiceStatus element.
|
SchemeInformation |
getSchemeInformation()
Gets the scheme information of the TSL.
|
org.w3.x2000.x09.xmldsig.SignatureType |
getSignature()
Gets the TSL signature.
|
java.util.List<TrustServiceProvider> |
getTrustServiceProviderList()
Gets the list with all the Trust Services Providers associated to this TSL.
|
java.net.URI |
getTSLTag()
Gets the URI that represents the tag attribute for the TrustServiceStatus element.
|
boolean |
isThereSomeTrustServiceProvider()
Checks if exists at least one Trust Service Provider associated to this TSL.
|
void |
setID(java.lang.String tslID)
Sets the ID attribute for the TSL.
|
void |
setSchemeInformation(SchemeInformation si)
Sets the scheme information associated to this TSL.
|
void |
setSignature(org.w3.x2000.x09.xmldsig.SignatureType signature)
Sets the XML Signature for the TSL.
|
void |
setTSLTag(java.net.URI tslTag)
Sets the URI that represents the tag attribute for the TrustServiceStatus element.
|
java.net.URI getTSLTag()
void setTSLTag(java.net.URI tslTag)
throws TSLArgumentException
tslTag - URI to set.TSLArgumentException - In case of the input parameter is null or not well formed.java.lang.String getID()
null if not
is defined.void setID(java.lang.String tslID)
tslID - String that represents the ID to set. It can be null.SchemeInformation getSchemeInformation()
void setSchemeInformation(SchemeInformation si) throws TSLArgumentException
si - Scheme information to be associated to this TSL.TSLArgumentException - In case of the input parameter is null or not well formed.java.util.List<TrustServiceProvider> getTrustServiceProviderList()
null.void addNewTrustServiceProvider(TrustServiceProvider tsp) throws TSLArgumentException
tsp - Trust Service Provider to add. It can not be null.TSLArgumentException - In case of the input parameter is null or not well formed.boolean isThereSomeTrustServiceProvider()
true if exists at least one, otherwise false.org.w3.x2000.x09.xmldsig.SignatureType getSignature()
void setSignature(org.w3.x2000.x09.xmldsig.SignatureType signature)
signature - XML Signature to set for this TSL.void checkTSLValues()
throws TSLMalformedException
TSLMalformedException - In case of some data does not exist or has not a correct value.void buildTSLFromXMLcheckValues(java.io.InputStream is)
throws TSLArgumentException,
TSLParsingException,
TSLMalformedException
is - InputStream Input Stream of the XML (TSL representation).TSLArgumentException - In case of the input parameter is null.TSLParsingException - In case of some error parsing the XML input stream.TSLMalformedException - In case of some data does not exist or has not a correct value.void buildTSLFromXMLcheckValues(java.io.InputStream is,
boolean checkSignature)
throws TSLArgumentException,
TSLParsingException,
TSLMalformedException
is - InputStream Input Stream of the XML (TSL representation).checkSignature - Flag that indicates if the TSL signature must be checked (true).TSLArgumentException - In case of the input parameter is null.TSLParsingException - In case of some error parsing the XML input stream.TSLMalformedException - In case of some data does not exist or has not a correct value.byte[] checkValuesBuildXMLfromTSL()
throws TSLMalformedException,
TSLEncodingException
TSLMalformedException - In case of some data does not exist or has not a correct value.TSLEncodingException - In case of some error encoding the TSL.