ServiceEDSManagerForCAdESGenerateSignatureAsync - метод
Подписывает документ при помощи указанного сертификата.
Пространство имён: Tessa.Extensions.Default.Client.EDSСборка: Tessa.Extensions.Default.Client (в Tessa.Extensions.Default.Client.dll) Версия: 3.6.0.22
public override ValueTask<byte[]> GenerateSignatureAsync(
byte[] certificate,
ISignatureFile file,
string hashAlgo,
CancellationToken cancellationToken = default
)
Public Overrides Function GenerateSignatureAsync (
certificate As Byte(),
file As ISignatureFile,
hashAlgo As String,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of Byte())
public:
virtual ValueTask<array<unsigned char>^> GenerateSignatureAsync(
array<unsigned char>^ certificate,
ISignatureFile^ file,
String^ hashAlgo,
CancellationToken cancellationToken = CancellationToken()
) override
abstract GenerateSignatureAsync :
certificate : byte[] *
file : ISignatureFile *
hashAlgo : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<byte[]>
override GenerateSignatureAsync :
certificate : byte[] *
file : ISignatureFile *
hashAlgo : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<byte[]>
- certificate Byte
- Сертификат электронной подписи.
- file ISignatureFile
- Документ, который необходимо подписать.
- hashAlgo String
-
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
ValueTaskByteСгенерированный файл подписи.
IEDSManagerGenerateSignatureAsync(Byte, ISignatureFile, String, CancellationToken)