public abstract class Extension extends java.lang.Object implements IAnyTypeExtension
Abstract class that represents a TSL Extension with could contains differents elements regardless it implementation.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
IMPL_ADDITIONAL_SERVICE_INFORMATION, IMPL_EXPIRED_CERTS_REVOCATION_INFO, IMPL_QUALIFICATIONS, IMPL_TAKENOVERBY, IMPL_UNKNOWN_EXTENSION, TYPE_SCHEME, TYPE_SERVICE_INFORMATION, TYPE_TSP_INFORMATION| Modifier and Type | Method and Description |
|---|---|
void |
checkExtensionValue(ITSLObject tsl,
ServiceHistoryInstance shi)
Checks if the extension has an appropiate value in the TSL.
|
java.lang.String |
extensionTypeToString(int extensionType)
Gets a string name representation of the specified extension type.
|
int |
getExtensionType()
Gets the value of the attribute
type. |
int |
getImplementationExtension()
Gets the implementation for the extension.
|
boolean |
isCritical()
Checks if the extension is critical or not.
|
public final boolean isCritical()
isCritical in interface IAnyTypeExtensiontrue if the extension is critical, otherwise false.IAnyTypeExtension.isCritical()public final int getExtensionType()
type.type.public final int getImplementationExtension()
getImplementationExtension in interface IAnyTypeExtensiones.gob.afirma.mtsl.parsing.impl.common.extensions.IAnyTypeExtension#getImplementationExtension()public final java.lang.String extensionTypeToString(int extensionType)
extensionType - Extension type. Refer to its location inside the XML. It could be one of the following:
IAnyTypeExtension.TYPE_SCHEMEIAnyTypeExtension.TYPE_TSP_INFORMATIONIAnyTypeExtension.TYPE_SERVICE_INFORMATIONpublic final void checkExtensionValue(ITSLObject tsl, ServiceHistoryInstance shi) throws TSLMalformedException
checkExtensionValue in interface IAnyTypeExtensiontsl - TSL Object representation that contains the service and the extension.shi - Service Information (or service history information) in which is declared the extension.TSLMalformedException - In case of the extension has not a correct value.IAnyTypeExtension.checkExtensionValue(es.gob.afirma.tsl.parsing.ifaces.ITSLObject, es.gob.afirma.tsl.parsing.impl.common.ServiceHistoryInstance)