PdfRpt.Core.Security.SignatureWriter.validateInputs C# (CSharp) Method

validateInputs() private method

private validateInputs ( ) : void
return void
        private void validateInputs()
        {
            if (SignatureData.CertificateFile == null)
                throw new InvalidOperationException("Please specify the CertificateFile");

            if (string.IsNullOrEmpty(SignatureData.CertificateFile.PfxPassword))
                throw new InvalidOperationException("Please specify the PfxPassword");

            if (string.IsNullOrEmpty(SignatureData.CertificateFile.PfxPath) || !File.Exists(SignatureData.CertificateFile.PfxPath))
                throw new FileNotFoundException("Please specify a valid PfxPath");

            if (SignatureData.SigningInfo == null)
                throw new InvalidOperationException("Please specify the SigningInfo");

            if (string.IsNullOrEmpty(SignatureData.SigningInfo.Reason))
                throw new InvalidOperationException("Please specify the SigningReason");

            if (string.IsNullOrEmpty(SignatureData.SigningInfo.Contact))
                throw new InvalidOperationException("Please specify the SigningContact");

            if (string.IsNullOrEmpty(SignatureData.SigningInfo.Location))
                throw new InvalidOperationException("Please specify the SigningLocation");
        }