public static Dictionary <string, string> GetKeywords(X509Certificate2 certificate, XmlDocument xmlDocument, DocumentTypeConfig documentType) { Dictionary <string, string> keywords = KeywordsFromX509Certificate2.GetKeywords(certificate); KeywordFromXmlDocument.GetKeywords(keywords, xmlDocument); keywords.Add("documenttypefriendlyname", documentType.FriendlyName); keywords.Add("documenttypeid", documentType.Id.ToString()); return(keywords); }
/// <summary> /// Constructor that takes the certificate that has no cvr number in its subject. /// </summary> /// <param name="certificate"></param> public NoSubjectCvrNumberException(X509Certificate2 certificate) : base(KeywordsFromX509Certificate2.GetKeywords(certificate)) { }
/// <summary> /// Constructor that takes the certificate attempted to initialize the OCES /// employee certificate with. /// </summary> /// <param name="certificate"></param> public InvalidOcesEmployeeCertificateException(X509Certificate2 certificate) : base(KeywordsFromX509Certificate2.GetKeywords(certificate)) { }
/// <summary> /// Constructor that takes the certificate and an exception as the reason as /// parameter. /// </summary> /// <param name="certificate"></param> /// <param name="innerException"></param> public FailedGetOcesCertificateTypeException(X509Certificate2 certificate, Exception innerException) : base(KeywordsFromX509Certificate2.GetKeywords(certificate), innerException) { }
/// <summary> /// Constructor that takes the certificate that is not a valid oces certificate as /// parameter. /// </summary> /// <param name="certificate"></param> public NotAValidOcesCertificateException(X509Certificate2 certificate) : base(KeywordsFromX509Certificate2.GetKeywords(certificate)) { }