Exemplo n.º 1
0
        /// <summary>
        /// </summary>
        /// <returns><code>true</code> if this certificate is a youth certificate</returns>
        public bool IsYouthCertificate()
        {
            var element = X509CertificatePropertyExtrator.GetElementInX509Name(Certificate, ObjectIdentifiers.OrganizationalUnit);

            return(element != null &&
                   element == "Ung mellem 15 og 18 - Kan som udgangspunkt ikke lave juridisk bindende aftaler");
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets a specific element of the subject DN
 /// </summary>
 /// <param name="element">element <code>Name</code> of element to return value of</param>
 /// <returns>Specific element of the subject DN</returns>
 protected string GetElementInX509Name(String element)
 {
     return(X509CertificatePropertyExtrator.GetElementInX509Name(Certificate, element));
 }