ภาษา

CodeTransparencyClient.RunTransparentStatementVerification Method

Definition

Overloads

Name Description
RunTransparentStatementVerification(Byte[])
Obsolete.

Verify the receipt integrity against the COSE_Sign1 envelope and check if receipt was endorsed by the given service certificate. In the case of multiple receipts being embedded in the signature then verify all of them.

RunTransparentStatementVerification(Byte[], Byte[])

Verify the receipt integrity against the COSE_Sign1 envelope and check if receipt was endorsed by the service public keys. This method expects the issuer in the receipt to match the CodeTransparencyClient client endpoint. Calls Verify(Byte[], Byte[], CodeTransparencyVerificationKey) for each receipt found in the transparent statement.

RunTransparentStatementVerification(Byte[])

Source:
CodeTransparencyClient.cs

Caution

Use the static VerifyTransparentStatement method with options instead.

Verify the receipt integrity against the COSE_Sign1 envelope and check if receipt was endorsed by the given service certificate. In the case of multiple receipts being embedded in the signature then verify all of them.

[System.Obsolete("Use the static VerifyTransparentStatement method with options instead.")]
public virtual void RunTransparentStatementVerification(byte[] transparentStatementCoseSign1Bytes);
[<System.Obsolete("Use the static VerifyTransparentStatement method with options instead.")>]
abstract member RunTransparentStatementVerification : byte[] -> unit
override this.RunTransparentStatementVerification : byte[] -> unit
Public Overridable Sub RunTransparentStatementVerification (transparentStatementCoseSign1Bytes As Byte())

Parameters

transparentStatementCoseSign1Bytes
Byte[]

Receipt cbor or Cose_Sign1 (with an embedded receipt) bytes.

Attributes

Applies to

RunTransparentStatementVerification(Byte[], Byte[])

Source:
CodeTransparencyClient.cs
Source:
CodeTransparencyClient.cs

Verify the receipt integrity against the COSE_Sign1 envelope and check if receipt was endorsed by the service public keys. This method expects the issuer in the receipt to match the CodeTransparencyClient client endpoint. Calls Verify(Byte[], Byte[], CodeTransparencyVerificationKey) for each receipt found in the transparent statement.

public virtual void RunTransparentStatementVerification(byte[] signedStatementCoseSign1Bytes, byte[] receiptCoseSign1Bytes);
abstract member RunTransparentStatementVerification : byte[] * byte[] -> unit
override this.RunTransparentStatementVerification : byte[] * byte[] -> unit
Public Overridable Sub RunTransparentStatementVerification (signedStatementCoseSign1Bytes As Byte(), receiptCoseSign1Bytes As Byte())

Parameters

signedStatementCoseSign1Bytes
Byte[]

Signed statement in Cose_Sign1 cbor bytes.

receiptCoseSign1Bytes
Byte[]

Receipt in COSE_Sign1 cbor bytes.

Exceptions

Thrown when the verification fails.

Applies to