Represent the value of a SignaturePolicy
Beispiel #1
0
		/// <summary>The default constructor for SignatureLevelBES.</summary>
		/// <remarks>The default constructor for SignatureLevelBES.</remarks>
		/// <param name="name"></param>
		/// <param name="signature"></param>
		/// <param name="levelReached"></param>
		public SignatureLevelEPES(AdvancedSignature signature, Result levelReached) : base
			(levelReached)
		{
			if (signature != null)
			{
				signaturePolicy = signature.GetPolicyId();
			}
		}
Beispiel #2
0
 protected internal virtual SignatureLevelEPES VerifyLevelEPES(AdvancedSignature signature
                                                               , DateTime referenceTime, ValidationContext ctx)
 {
     try
     {
         PolicyValue policyValue  = signature.GetPolicyId();
         Result      levelReached = new Result(policyValue != null);
         return(new SignatureLevelEPES(signature, levelReached));
     }
     catch (Exception)
     {
         return(new SignatureLevelEPES(signature, new Result(Result.ResultStatus.INVALID,
                                                             "exception.while.verifying")));
     }
 }