Пример #1
0
        public X509Certificate2Collection Find(X509FindType findType, object findValue, bool validOnly)
        {
            if (findValue == null)
            {
                throw new ArgumentNullException(nameof(findValue));
            }

            return(FindPal.FindFromCollection(this, findType, findValue, validOnly));
        }
Пример #2
0
        public string NormalizeOid(string maybeOid, OidGroup expectedGroup)
        {
            Oid oid = new Oid(maybeOid);

            // If maybeOid is interpreted to be a FriendlyName, return the OID.
            if (!StringComparer.OrdinalIgnoreCase.Equals(oid.Value, maybeOid))
            {
                return(oid.Value !);
            }

            FindPal.ValidateOidValue(maybeOid);
            return(maybeOid);
        }
Пример #3
0
        public X509Certificate2Collection Find(X509FindType findType, object findValue, bool validOnly)
        {
            ArgumentNullException.ThrowIfNull(findValue);

            return(FindPal.FindFromCollection(this, findType, findValue, validOnly));
        }