Class 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.String SCHEME_TYPE_FIELD_NAME
      Constant attribute that represents the token name for the Scheme Type Field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkTSLSignature​(byte[] fullTSLxml)
      Checks if must be defined (according to its specification and version) or not the TSL signature.
      void checkTSLValues​(boolean checkSignature, byte[] fullTSLxml)
      Checks all the actual values assigned to this TSL as the concrecte specification and version requires.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 TSLMalformedException
        Checks all the actual values assigned to this TSL as the concrecte specification and version requires.
        Specified by:
        checkTSLValues in interface ITSLChecker
        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 TSLMalformedException
        Checks 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.