CodeTransparencyClient.VerifyTransparentStatement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verify the receipt integrity against the COSE_Sign1 envelope and (optionally) enforce issuer domain authorized-list rules. It will create an instance of CodeTransparencyClient for each issuer domain encountered in the verification process.
public static void VerifyTransparentStatement(byte[] transparentStatementCoseSign1Bytes, Azure.Security.CodeTransparency.CodeTransparencyVerificationOptions verificationOptions = default, Azure.Security.CodeTransparency.CodeTransparencyClientOptions clientOptions = default);
static member VerifyTransparentStatement : byte[] * Azure.Security.CodeTransparency.CodeTransparencyVerificationOptions * Azure.Security.CodeTransparency.CodeTransparencyClientOptions -> unit
Public Shared Sub VerifyTransparentStatement (transparentStatementCoseSign1Bytes As Byte(), Optional verificationOptions As CodeTransparencyVerificationOptions = Nothing, Optional clientOptions As CodeTransparencyClientOptions = Nothing)
Parameters
- transparentStatementCoseSign1Bytes
- Byte[]
Receipt cbor or Cose_Sign1 (with an embedded receipt) bytes.
- verificationOptions
- CodeTransparencyVerificationOptions
Optional verification options. If null or if AuthorizedDomains is empty, all receipts are verified (original behavior).
- clientOptions
- CodeTransparencyClientOptions
The options for configuring the client instances that download public keys required for verification.
Exceptions
Thrown when: no receipts exist; authorized-list is provided and no receipt matches any authorized domain; a unauthorized receipt exists while FailIfPresent is selected.
Thrown containing individual failures encountered during verification.