TrustImage.TiibSigner 1.0.18

There is a newer version of this package available.
See the version list below for details.
dotnet add package TrustImage.TiibSigner --version 1.0.18
NuGet\Install-Package TrustImage.TiibSigner -Version 1.0.18
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="TrustImage.TiibSigner" Version="1.0.18" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TrustImage.TiibSigner --version 1.0.18
#r "nuget: TrustImage.TiibSigner, 1.0.18"
#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 TrustImage.TiibSigner as a Cake Addin
#addin nuget:?package=TrustImage.TiibSigner&version=1.0.18

// Install TrustImage.TiibSigner as a Cake Tool
#tool nuget:?package=TrustImage.TiibSigner&version=1.0.18

TrustImage.TiibSigner NuGet version (TrustImage.TiibSigner)

Trustimage.TiibSigner é um pacote para assinatura de documento pdf com certificado digital.

Nova Instância


ConfigPocket? configPocket = null

Se for assinar com um pocket

configPocket = new ConfigPocket()
            {
                UrlAcCarimboDeTempo = "https://xxx.com.br",
                UsuarioAcCarimboDeTempo = "xxxxxxx",
                SenhaAcCarimboDeTempo = "xxxxxxx",
                UrlPocket = "000.000.00.00", nome ou ip
                SenhaPocket = "xxxxxxx",
                UsuarioPocket = "xxxxxxx"
            };


using TiibSigner.NuGetPackage;
var builder = WebApplication.CreateBuilder(args);
builder.services.TiibSignerPackage(
                        licencaTiibSigner //Obrigatório,
                        PoliticaAssinatura.PkiBrazilAdrTempo //Obrigatório,
                        TipoDaInstancia? tipoDaInstancia // Default Scoped,
                        certificadoRaizAC,
                        parametros.EndpointCarimboDeTempoBry,
                        parametros.ClientIdCarimboDeTempoBry,
                        parametros.ClientSecretCarimboDeTempoBry,
                        configPocket
                );

Ou

var instancia = Config.ObterInstanciaAssinador(
                        licencaTiibSigner //Obrigatório,
                        PoliticaAssinatura.PkiBrazilAdrTempo //Obrigatório,
                        certificadoRaizAC,
                        parametros.EndpointCarimboDeTempoBry,
                        parametros.ClientIdCarimboDeTempoBry,
                        parametros.ClientSecretCarimboDeTempoBry,
                        configPocket
                );

Ou

 var instancia = new AssinadorSdkPkiPackage(
                        licencaTiibSigner //Obrigatório,
                        PoliticaAssinatura.PkiBrazilAdrTempo //Obrigatório,
                        certificadoRaizAC,
                        parametros.EndpointCarimboDeTempoBry,
                        parametros.ClientIdCarimboDeTempoBry,
                        parametros.ClientSecretCarimboDeTempoBry,
                        configPocket
 )

Assinar Documento

private readonly IAssinadorSdkPkiPackage instancia;
public Construtor(IAssinadorSdkPkiPackage assinadorSdkPkiPackage){
 instancia = assinadorSdkPkiPackage;
}

// Passo 1 Iniciar Assinatura
instancia.IniciarAssinaturaRemotaPdf(conteudoCertificadoAssinatura, arquivoEmBytes);

// Passo 2 Finalizar Assinatura
instancia.FinalizarAssinaturaRemotaPdf(bytesAssinatura, arquivoEmBytes);

Validar Assinatura do Documento

private readonly IAssinadorSdkPkiPackage instancia;
public Construtor(IAssinadorSdkPkiPackage assinadorSdkPkiPackage){
 instancia = assinadorSdkPkiPackage;
}

  var bytesArquivo = File.ReadAllBytes(arquivo);
  using Stream arquivoStream = new MemoryStream(bytesArquivo);
  var dtoDetalhesAssinatura = instancia.ObterDetalhesAssinates(arquivoStream);

Assinar com o Pocket

private readonly IAssinadorSdkPkiPackage instancia;

public Construtor(IAssinadorSdkPkiPackage assinadorSdkPkiPackage){
 instancia = assinadorSdkPkiPackage;
}


  var bytesArquivo = File.ReadAllBytes(arquivo);
  var thumbprintCertificado = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";
  var arquivoAssinado = instancia.AssinarComPocket(bytesArquivo,thumbprintCertificado);


Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
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
2.0.33 197 12/5/2023
2.0.32 164 10/11/2023
2.0.31 131 10/4/2023
2.0.30 124 9/29/2023
2.0.29 562 8/21/2023
2.0.28 206 7/31/2023
2.0.27 150 7/31/2023
2.0.26 139 7/31/2023
2.0.25 154 7/17/2023
2.0.24 164 6/27/2023
2.0.23 149 6/26/2023
2.0.22 167 6/26/2023
2.0.21 167 6/26/2023
2.0.20 147 6/26/2023
2.0.19 148 5/30/2023
2.0.18 216 4/25/2023
1.0.18 308 3/8/2023
1.0.17 238 3/8/2023
1.0.16 251 3/7/2023
1.0.15 314 1/27/2023
1.0.14 314 1/27/2023
1.0.13 308 1/24/2023
1.0.12 299 1/24/2023
1.0.11 311 1/23/2023
1.0.10 313 1/23/2023
1.0.9 317 1/23/2023
1.0.8 308 1/23/2023
1.0.7 305 1/23/2023