Class RestPkiClient
This is the most important class to use Rest PKI.
Inheritance
RestPkiClient
Assembly: Lacuna.RestPki.Client.dll
Syntax
public class RestPkiClient : IRestExceptionBuilderPortable, IRestExceptionBuilder
Constructors
RestPkiClient(String, String)
Declaration
public RestPkiClient(string endpointUrl, string authToken)
Parameters
RestPkiClient(Uri, String)
Declaration
public RestPkiClient(Uri endpointUri, string authToken)
Parameters
Type |
Name |
Description |
Uri |
endpointUri |
|
String |
authToken |
|
Properties
AuthToken
Declaration
public string AuthToken { get; }
Property Value
EndpointUri
Declaration
public Uri EndpointUri { get; }
Property Value
MultipartUploadDoubleCheck
Declaration
public bool MultipartUploadDoubleCheck { get; set; }
Property Value
MultipartUploadThreshold
Declaration
public int MultipartUploadThreshold { get; set; }
Property Value
RestPkiVersion
Declaration
public Version RestPkiVersion { get; set; }
Property Value
Methods
BuildException(HttpMethod, Uri, HttpResponsePortable)
Declaration
public Exception BuildException(HttpMethod verb, Uri uri, HttpResponsePortable response)
Parameters
Type |
Name |
Description |
HttpMethod |
verb |
|
Uri |
uri |
|
Lacuna.RestClient.HttpResponsePortable |
response |
|
Returns
Implements
Lacuna.RestClient.IRestExceptionBuilderPortable.BuildException(System.Net.Http.HttpMethod, System.Uri, Lacuna.RestClient.HttpResponsePortable)
BuildExceptionAsync(HttpMethod, Uri, HttpContent)
Declaration
public Task<Exception> BuildExceptionAsync(HttpMethod verb, Uri uri, HttpContent content)
Parameters
Returns
Implements
Lacuna.RestClient.IRestExceptionBuilder.BuildExceptionAsync(System.Net.Http.HttpMethod, System.Uri, System.Net.Http.HttpContent)
CertificateExplorer()
Declaration
public CertificateExplorer CertificateExplorer()
Returns
GetAuthentication()
Declaration
public Authentication GetAuthentication()
Returns
GetCadesSignatureExplorer()
Declaration
public CadesSignatureExplorer GetCadesSignatureExplorer()
Returns
GetCadesSignatureFinisher()
Declaration
public CadesSignatureFinisher GetCadesSignatureFinisher()
Returns
GetCadesSignatureStarter()
Declaration
public CadesSignatureStarter GetCadesSignatureStarter()
Returns
GetPadesSignatureExplorer()
Declaration
public PadesSignatureExplorer GetPadesSignatureExplorer()
Returns
GetPadesSignatureFinisher()
Declaration
public PadesSignatureFinisher GetPadesSignatureFinisher()
Returns
GetPadesSignatureStarter()
Declaration
public PadesSignatureStarter GetPadesSignatureStarter()
Returns
GetPkiBrazilTimestamper()
Declaration
public Timestamper GetPkiBrazilTimestamper()
Returns
UploadFile(Byte[])
Declaration
public BlobReference UploadFile(byte[] content)
Parameters
Type |
Name |
Description |
Byte[] |
content |
|
Returns
UploadFile(Stream)
Declaration
public BlobReference UploadFile(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Returns
UploadFile(String)
Declaration
public BlobReference UploadFile(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
UploadFileAsync(Byte[])
Declaration
public Task<BlobReference> UploadFileAsync(byte[] content)
Parameters
Type |
Name |
Description |
Byte[] |
content |
|
Returns
UploadFileAsync(Stream)
Declaration
public Task<BlobReference> UploadFileAsync(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Returns
UploadFileAsync(String)
Declaration
public Task<BlobReference> UploadFileAsync(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns