Validation information for level X (CAdES, XAdES).
Validation information for level X (CAdES, XAdES).
Inheritance: SignatureLevel
Exemplo n.º 1
0
		/// <summary>The default constructor for SignatureLevelAnalysis.</summary>
		/// <remarks>The default constructor for SignatureLevelAnalysis.</remarks>
		/// <param name="name"></param>
		/// <param name="signature"></param>
		public SignatureLevelAnalysis(AdvancedSignature signature, SignatureLevelBES levelBES
			, SignatureLevelEPES levelEPES, SignatureLevelT levelT, SignatureLevelC levelC, 
			SignatureLevelX levelX, SignatureLevelXL levelXL, SignatureLevelA levelA, SignatureLevelLTV
			 levelLTV)
		{
			//import eu.europa.ec.markt.dss.validation.pades.PAdESSignature;
			//import eu.europa.ec.markt.dss.validation.xades.XAdESSignature;
			bool levelReached = true;
			this.signature = signature;
			this.levelBES = levelBES;
			bool levelBESReached = LevelIsReached(levelBES, levelReached);
			levelReached = levelBESReached;
			this.levelEPES = levelEPES;
			LevelIsReached(levelEPES, levelReached);
			this.levelT = levelT;
			bool levelReachedT = LevelIsReached(levelT, levelReached);
			this.levelC = levelC;
			levelReached = LevelIsReached(levelC, levelReachedT);
			this.levelX = levelX;
			levelReached = LevelIsReached(levelX, levelReached);
			this.levelXL = levelXL;
			levelReached = LevelIsReached(levelXL, levelReached);
			this.levelA = levelA;
			levelReached = LevelIsReached(levelA, levelReached);
			this.levelLTV = levelLTV;
			levelReached = LevelIsReached(levelLTV, levelBESReached);
		}
Exemplo n.º 2
0
        /// <summary>The default constructor for SignatureLevelAnalysis.</summary>
        /// <remarks>The default constructor for SignatureLevelAnalysis.</remarks>
        /// <param name="name"></param>
        /// <param name="signature"></param>
        public SignatureLevelAnalysis(AdvancedSignature signature, SignatureLevelBES levelBES
                                      , SignatureLevelEPES levelEPES, SignatureLevelT levelT, SignatureLevelC levelC,
                                      SignatureLevelX levelX, SignatureLevelXL levelXL, SignatureLevelA levelA, SignatureLevelLTV
                                      levelLTV)
        {
            //import eu.europa.ec.markt.dss.validation.pades.PAdESSignature;
            //import eu.europa.ec.markt.dss.validation.xades.XAdESSignature;
            bool levelReached = true;

            this.signature = signature;
            this.levelBES  = levelBES;
            bool levelBESReached = LevelIsReached(levelBES, levelReached);

            levelReached   = levelBESReached;
            this.levelEPES = levelEPES;
            LevelIsReached(levelEPES, levelReached);
            this.levelT = levelT;
            bool levelReachedT = LevelIsReached(levelT, levelReached);

            this.levelC   = levelC;
            levelReached  = LevelIsReached(levelC, levelReachedT);
            this.levelX   = levelX;
            levelReached  = LevelIsReached(levelX, levelReached);
            this.levelXL  = levelXL;
            levelReached  = LevelIsReached(levelXL, levelReached);
            this.levelA   = levelA;
            levelReached  = LevelIsReached(levelA, levelReached);
            this.levelLTV = levelLTV;
            levelReached  = LevelIsReached(levelLTV, levelBESReached);
        }