public X509Certificate2Collection Find(X509FindType findType, object findValue, bool validOnly) { if (findValue == null) { throw new ArgumentNullException(nameof(findValue)); } return(FindPal.FindFromCollection(this, findType, findValue, validOnly)); }
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); }
public X509Certificate2Collection Find(X509FindType findType, object findValue, bool validOnly) { ArgumentNullException.ThrowIfNull(findValue); return(FindPal.FindFromCollection(this, findType, findValue, validOnly)); }