Class ATSLChecker
- java.lang.Object
-
- es.gob.afirma.tsl.parsing.impl.common.ATSLChecker
-
- All Implemented Interfaces:
ITSLChecker
- Direct Known Subclasses:
TSLChecker
public abstract class ATSLChecker extends java.lang.Object implements ITSLChecker
Abstract class that represents a TSL data checker with the principal functions regardless it implementation.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.2, 18/04/2022.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSCHEME_TYPE_FIELD_NAMEConstant attribute that represents the token name for the Scheme Type Field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckTSLSignature(byte[] fullTSLxml)Checks if must be defined (according to its specification and version) or not the TSL signature.voidcheckTSLValues(boolean checkSignature, byte[] fullTSLxml)Checks all the actual values assigned to this TSL as the concrecte specification and version requires.
-
-
-
Field Detail
-
SCHEME_TYPE_FIELD_NAME
public static final java.lang.String SCHEME_TYPE_FIELD_NAME
Constant attribute that represents the token name for the Scheme Type Field.- See Also:
- Constant Field Values
-
-
Method Detail
-
checkTSLValues
public final void checkTSLValues(boolean checkSignature, byte[] fullTSLxml) throws TSLMalformedExceptionChecks all the actual values assigned to this TSL as the concrecte specification and version requires.- Specified by:
checkTSLValuesin interfaceITSLChecker- Parameters:
checkSignature- Flag that indicates if the TSL signature must be checked (true) or not (false).fullTSLxml- Byte array that represents the full TSL xml to check the signature.- Throws:
TSLMalformedException- In case of some data does not exist or has not a correct value.- See Also:
ITSLChecker.checkTSLValues(boolean, byte[])
-
checkTSLSignature
public final void checkTSLSignature(byte[] fullTSLxml) throws TSLMalformedExceptionChecks if must be defined (according to its specification and version) or not the TSL signature. Also checks the integrity of the signature.- Parameters:
fullTSLxml- Byte array that represents the full TSL xml to check the signature.- Throws:
TSLMalformedException- In case of some data has not a correct value.
-
-