PadesSignatureStarter
Namespace: Lacuna.RestPki.Client
Assembly: Lacuna.RestPki.Client
Class
Utility class to facilitate the startup of a PADeS signature process with Rest PKI
public class PadesSignatureStarter : SignatureStarter
Hierarquia: object → SignatureStarter → PadesSignatureStarter
Construtores
PadesSignatureStarter(RestPkiClient)
public PadesSignatureStarter(RestPkiClient client)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
client | RestPkiClient |
Propriedades
BypassMarksIfSigned
public bool BypassMarksIfSigned { get; set; }
Retorno
CertificationLevel
public PadesCertificationLevel CertificationLevel { get; set; }
Retorno
PadesCertificationLevel
CustomSignatureFieldName
public string CustomSignatureFieldName { get; set; }
Retorno
MeasurementUnits
public PadesMeasurementUnits MeasurementUnits { get; set; }
Retorno
PadesMeasurementUnits
PageOptimization
public PadesPageOptimization PageOptimization { get; set; }
Retorno
PdfMarks
public List<PdfMark> PdfMarks { get; set; }
Retorno
Reason
public string Reason { get; set; }
Retorno
VisualRepresentation
public PadesVisualRepresentation VisualRepresentation { get; set; }
Retorno
Métodos
SetPdfToSign(byte[])
Sets the content to sign via a byte array
public void SetPdfToSign(byte[] content)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
content | byte[] | The byte array representing the content to be signed |
SetPdfToSign(FileResult)
Sets the PDf to sign from a file result from a previous call to Rest PKI
public void SetPdfToSign(FileResult pdf)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
pdf | FileResult |
SetPdfToSign(Stream)
Sets the content to sign via a stream object
public void SetPdfToSign(Stream pdfStream)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
pdfStream | Stream | The stream representing thye content to be signed |
SetPdfToSign(string)
Sets the content to sign via a file path string
public void SetPdfToSign(string path)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
path | string | The path where the file will be found |
Exceções
| Tipo | Condição |
|---|---|
FileNotFoundException | In case a file cannot be found with the given path string |
SetVisualRepresentation(PadesVisualRepresentation)
Indicates that the signature created with this starter will have a visual representation indicated by
visualRepresentation
public void SetVisualRepresentation(PadesVisualRepresentation visualRepresentation)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
visualRepresentation | PadesVisualRepresentation | The visual representation that should be added to the result pdf |
Start()
Starts the signature without the web pki support
public override ClientSideSignatureInstructions Start()
Retorno
ClientSideSignatureInstructions — The instructions to proceed with the signature
StartAsync()
Starts the signature without the web pki support
public override Task<ClientSideSignatureInstructions> StartAsync()
Retorno
Task<ClientSideSignatureInstructions> — The instructions to proceed with the signature
StartWithWebPki()
Starts the signature leveraging the presence of the web pki
public override string StartWithWebPki()
Retorno
string — The signature token
StartWithWebPkiAsync()
Starts the signature leveraging the presence of the web pki
public override Task<string> StartWithWebPkiAsync()
Retorno
Task<string> — The signature token
Membros herdados
Client, Done, CertificateInfo, SetSignerCertificate(byte[]), SetSignaturePolicy(Guid), SetSecurityContext(Guid), SetCallbackArgument(string), GetCertificateInfo(), SignerCertificate, SignaturePolicyId, SecurityContextId, CallbackArgument, IgnoreRevocationStatusUnknown, GetType(), MemberwiseClone(), ToString(), Equals(object), Equals(object, object), ReferenceEquals(object, object), GetHashCode()