言語

CodeTransparencyClient.GetScittKeyAsync Method

Definition

Overloads

Name Description
GetScittKeyAsync(String, RequestContext)

Get a single service key by kid.

GetScittKeyAsync(String, CancellationToken)

Get a single service key by kid, normalized to a verification key.

GetScittKeyAsync(String, RequestContext)

Source:
CodeTransparencyClient.cs
Source:
CodeTransparencyClient.cs

Get a single service key by kid.

public virtual System.Threading.Tasks.Task<Azure.Response> GetScittKeyAsync(string kid, Azure.RequestContext context);
abstract member GetScittKeyAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetScittKeyAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetScittKeyAsync (kid As String, context As RequestContext) As Task(Of Response)

Parameters

kid
String

Key ID (kid) of the SCITT key to retrieve.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The raw COSE_Key CBOR response returned from the service.

Exceptions

kid is null.

kid is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetScittKeyAsync(String, CancellationToken)

Source:
CodeTransparencyClient.cs
Source:
CodeTransparencyClient.cs

Get a single service key by kid, normalized to a verification key.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.CodeTransparency.CodeTransparencyVerificationKey>> GetScittKeyAsync(string kid, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task<Azure.Response<BinaryData>> GetScittKeyAsync(string kid, System.Threading.CancellationToken cancellationToken = default);
abstract member GetScittKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.CodeTransparency.CodeTransparencyVerificationKey>>
override this.GetScittKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.CodeTransparency.CodeTransparencyVerificationKey>>
abstract member GetScittKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<BinaryData>>
override this.GetScittKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<BinaryData>>
Public Overridable Function GetScittKeyAsync (kid As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CodeTransparencyVerificationKey))
Public Overridable Function GetScittKeyAsync (kid As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BinaryData))

Parameters

kid
String

Key ID (kid) of the SCITT key to retrieve.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

kid is null.

kid is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to