Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 /// <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))
 {
 }
Exemplo n.º 3
0
 /// <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))
 {
 }
Exemplo n.º 4
0
 /// <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)
 {
 }
Exemplo n.º 5
0
 /// <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))
 {
 }