Package es.gob.afirma.tsl.parsing.ifaces
Interface IAnyTypeExtension
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AdditionalServiceInformation,ExpiredCertsRevocationInfo,Extension,Qualifications,TakenOverBy,UnknownExtension
public interface IAnyTypeExtension extends java.io.SerializableInterface that defines the common method for any type extensions in a TSL.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 10/11/2020.
-
-
Field Summary
Fields Modifier and Type Field Description static intIMPL_ADDITIONAL_SERVICE_INFORMATIONConstant attribute that represents the implementation extension: AdditionalServiceInformation.static intIMPL_EXPIRED_CERTS_REVOCATION_INFOConstant attribute that represents the implementation extension: ExpiredCertsRevocationInfo.static intIMPL_QUALIFICATIONSConstant attribute that represents the implementation extension: Qualifications.static intIMPL_TAKENOVERBYConstant attribute that represents the implementation extension: TakenOverBy.static intIMPL_UNKNOWN_EXTENSIONConstant attribute that represents the implementation extension: UnknownExtension.static intTYPE_SCHEMEConstant attribute that identifies a extension how 'Schemne Extension'.static intTYPE_SERVICE_INFORMATIONConstant attribute that identifies a extension how 'Service Information Extension'.static intTYPE_TSP_INFORMATIONConstant attribute that identifies a extension how 'TSP Information Extension'.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckExtensionValue(ITSLObject tsl, ServiceHistoryInstance shi)Checks if the extension has an appropiate value in the TSL.intgetImplementationExtension()Gets the implementation for the extension.booleanisCritical()Checks if the extension is critical or not.
-
-
-
Field Detail
-
TYPE_SCHEME
static final int TYPE_SCHEME
Constant attribute that identifies a extension how 'Schemne Extension'.- See Also:
- Constant Field Values
-
TYPE_TSP_INFORMATION
static final int TYPE_TSP_INFORMATION
Constant attribute that identifies a extension how 'TSP Information Extension'.- See Also:
- Constant Field Values
-
TYPE_SERVICE_INFORMATION
static final int TYPE_SERVICE_INFORMATION
Constant attribute that identifies a extension how 'Service Information Extension'.- See Also:
- Constant Field Values
-
IMPL_ADDITIONAL_SERVICE_INFORMATION
static final int IMPL_ADDITIONAL_SERVICE_INFORMATION
Constant attribute that represents the implementation extension: AdditionalServiceInformation.- See Also:
- Constant Field Values
-
IMPL_EXPIRED_CERTS_REVOCATION_INFO
static final int IMPL_EXPIRED_CERTS_REVOCATION_INFO
Constant attribute that represents the implementation extension: ExpiredCertsRevocationInfo.- See Also:
- Constant Field Values
-
IMPL_QUALIFICATIONS
static final int IMPL_QUALIFICATIONS
Constant attribute that represents the implementation extension: Qualifications.- See Also:
- Constant Field Values
-
IMPL_TAKENOVERBY
static final int IMPL_TAKENOVERBY
Constant attribute that represents the implementation extension: TakenOverBy.- See Also:
- Constant Field Values
-
IMPL_UNKNOWN_EXTENSION
static final int IMPL_UNKNOWN_EXTENSION
Constant attribute that represents the implementation extension: UnknownExtension.- See Also:
- Constant Field Values
-
-
Method Detail
-
isCritical
boolean isCritical()
Checks if the extension is critical or not.- Returns:
trueif the extension is critical, otherwisefalse.
-
getImplementationExtension
int getImplementationExtension()
Gets the implementation for the extension.- Returns:
- Implementation for the extension.
-
checkExtensionValue
void checkExtensionValue(ITSLObject tsl, ServiceHistoryInstance shi) throws TSLMalformedException
Checks if the extension has an appropiate value in the TSL.- Parameters:
tsl- TSL Object representation that contains the service and the extension.shi- Service Information (or service history information) in which is declared the extension.- Throws:
TSLMalformedException- In case of the extension has not a correct value.
-
-