TAXII2Sharp.Client 1.0.0

dotnet add package TAXII2Sharp.Client --version 1.0.0                
NuGet\Install-Package TAXII2Sharp.Client -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TAXII2Sharp.Client" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TAXII2Sharp.Client --version 1.0.0                
#r "nuget: TAXII2Sharp.Client, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TAXII2Sharp.Client as a Cake Addin
#addin nuget:?package=TAXII2Sharp.Client&version=1.0.0

// Install TAXII2Sharp.Client as a Cake Tool
#tool nuget:?package=TAXII2Sharp.Client&version=1.0.0                

TAXII2Sharp.Client

TAXII2Sharp.Client is a C# .NET Standard implementation of the TAXII2 specifications for retrieving STIX structured data from a TAXII Endpoint.

For more information on the TAXII Specifications, please see the References section below. For more information on the STIX specifications, please see the References section below.

Usage

using System;
using System.Collections.Generic;
// Please note that the client version to be imported is dependent on the TAXII Standard version run by the server
using TAXIISharp2.Client.V20;

...

// Create a server
Server endpoint = new Server("https://somesite.org/taxii");

// Get a list of the APIRoot endpoints provided by that server
List<APIRoots> APIRoots = endpoint.GetAPIRoots();

// Iterate over the APIRoot objects
foreach (APIRoot root in APIRoots)
{
    // Iterate over the Collection hosted at that APIRoot 
    foreach (Collection collection in root.Collections)
    {
        // Get the STIX objects that the collection contains
        var Objects = collection.GetObjects();
        Console.WriteLine("Total objects in collection: {0}", Objects.Objects.Length);
    }
}

For additional information, please see the example included in the project

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

References

TAXII 2.0 Specification TAXII 2.1 Specification STIX Specification

License

GNU Lesser General Public License v2.1

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 4,399 4/14/2021

Initial release of TAXII2Sharp.Client

This release contains a TAXII2 client with implementations for TAXII2 v2.0 and 2.1, with STIX2 Object definitions in order to allow for connection to a TAXII Endpoint to gather relevant data from it.