public static NetworkCredential GetCredentials([NotNull] this X509CertificateStore thisValue, [NotNull] string name, SecureString password, string token, char separator = '|')
        {
            if (string.IsNullOrWhiteSpace(token))
            {
                return(null);
            }
            X509Certificate2 certificate = thisValue.Get(name, password);

            return(certificate == null
                                                ? null
                                                : GetCredentials(certificate, token, separator));
        }
 public static NetworkCredential GetCredentials([NotNull] this X509CertificateStore thisValue, [NotNull] string name, string token, char separator = '|')
 {
     return(GetCredentials(thisValue, name, null, token, separator));
 }