TrustImage.TiibSigner 2.0.38

dotnet add package TrustImage.TiibSigner --version 2.0.38                
NuGet\Install-Package TrustImage.TiibSigner -Version 2.0.38                
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="2.0.38" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TrustImage.TiibSigner --version 2.0.38                
#r "nuget: TrustImage.TiibSigner, 2.0.38"                
#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=2.0.38

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

TrustImage.TiibSigner NuGet version (TrustImage.TiibSigner)

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

Nova Instância


   ParametrosAssinador parametros = new(
                 EndpointCarimboDeTempoBry,
                 ClientIdCarimboDeTempoBry,
                 ClientSecretCarimboDeTempoBry,
                 ConteudoCertificadoRaizACTrustProd,
                 UrlPocket,
                 SenhaPocket,
                 UsuarioPocket,
                 PoliticaAssinatura.PkiBrazilAdrTempo || PadesBasic || PadesT ||   PkiBrazilAdrBasica
                );


using TiibSigner.NuGetPackage;

var builder = WebApplication.CreateBuilder(args);
builder.services.TiibSignerPackage(
                     licenca  
                );

Ou

var instancia = Config.ObterInstanciaAssinador(
                        licenca
                );

Ou

 var instancia = new AssinadorSdkPkiPackage(
                        parametros,licenca
 )

Ou

services.TiibSignerPackage();

Assinar Documento

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

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

// Passo 2 Finalizar Assinatura
instancia.FinalizarAssinaturaRemotaPdf(bytesAssinatura, arquivoEmBytes);
ou
instancia.FinalizarAssinaturaRemotaPdf(parametros,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);
  ou
   var dtoDetalhesAssinatura = instancia.ObterDetalhesAssinates(parametros,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);
  ou
   var arquivoAssinado = instancia.AssinarComPocket(parametros,bytesArquivo,thumbprintCertificado);


Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.38 565 9/5/2024
2.0.37 187 7/11/2024
2.0.36 116 7/1/2024
2.0.35 124 7/1/2024
2.0.34 103 7/1/2024
2.0.33 581 12/5/2023
2.0.32 223 10/11/2023
2.0.31 176 10/4/2023
2.0.30 168 9/29/2023
2.0.29 823 8/21/2023
2.0.28 241 7/31/2023
2.0.27 182 7/31/2023
2.0.26 181 7/31/2023
2.0.25 191 7/17/2023
2.0.24 203 6/27/2023
2.0.23 189 6/26/2023
2.0.22 202 6/26/2023
2.0.21 203 6/26/2023
2.0.20 179 6/26/2023
2.0.19 182 5/30/2023
2.0.18 264 4/25/2023
1.0.18 335 3/8/2023
1.0.17 271 3/8/2023
1.0.16 284 3/7/2023
1.0.15 347 1/27/2023
1.0.14 350 1/27/2023
1.0.13 335 1/24/2023
1.0.12 333 1/24/2023
1.0.11 335 1/23/2023
1.0.10 332 1/23/2023
1.0.9 348 1/23/2023
1.0.8 345 1/23/2023
1.0.7 342 1/23/2023