C# Class Utils.SignatureValidator

Signature Validator Class
Mostra file Open project: ellak-monades-aristeias/DigitalSIgnatureCheckGR

Public Properties

Property Type Description
HARD_CERTIFICATE_POLICY_ID String
OCSP1 String
OCSP2 String
OCSP3 String
ROOT1 String
ROOT2 String
ROOT3 String

Public Methods

Method Description
validatePDF ( string filename, MessageReport &msg ) : bool

Private Methods

Method Description
CheckRevocation ( PdfPKCS7 pkcs7, X509Certificate signCert, X509Certificate issuerCert, System.DateTime date ) : bool
GetCertificateInfo ( X509Certificate cert, System.DateTime signDate ) : MessageReport.Cert
InspectSignature ( AcroFields fields, String name, SignaturePermissions perms ) : MessageReport.Signature
UpdateSignatureResults ( MessageReport &s ) : void
VerifySignature ( AcroFields fields, String name, MessageReport &sigInfo ) : PdfPKCS7
isHardCertificatePolicyOidt ( X509Certificate certificate ) : bool

Checks Certificate Policies for policy : "1.2.300.0.110001.1.7.1.1.1" which indicate a hard certificate

Method Details

validatePDF() public static method

public static validatePDF ( string filename, MessageReport &msg ) : bool
filename string
msg MessageReport
return bool

Property Details

HARD_CERTIFICATE_POLICY_ID public_oe static_oe property

public static String HARD_CERTIFICATE_POLICY_ID
return String

OCSP1 public_oe static_oe property

public static String OCSP1
return String

OCSP2 public_oe static_oe property

public static String OCSP2
return String

OCSP3 public_oe static_oe property

public static String OCSP3
return String

ROOT1 public_oe static_oe property

public static String ROOT1
return String

ROOT2 public_oe static_oe property

public static String ROOT2
return String

ROOT3 public_oe static_oe property

public static String ROOT3
return String