Exemplo n.º 1
0
        public void SetExtensions(
            X509Extensions extensions)
        {
            this.extensions = extensions;

            if (extensions != null)
            {
                X509Extension altName = extensions.GetExtension(X509Extensions.SubjectAlternativeName);

                if (altName != null && altName.IsCritical)
                {
                    altNamePresentAndCritical = true;
                }
            }
        }
Exemplo n.º 2
0
 public static X509Extension GetExtension(X509Extensions extensions, DerObjectIdentifier oid)
 {
     return(null == extensions ? null : extensions.GetExtension(oid));
 }