C# Class Microsoft.Azure.Build.Tasks.VerifyAuthenticodeSignatureTask

Authenticode Signature task Flow: FilesToCheckAuthCodeSignature: Support 1 or many files provided ProbingDirectory: When provided value to this property, we will ignore FilesToCheckAuthCodeSignature property FileFilterPattern: This is applicable when probingDirectory is specified and you want to filter selected group of files from contents of the directory (recurrsively searched) E.g. if FileFilterPattern specified = "microsoft.*.dll;system.*.dll;*.exe" We will first find all the files microsoft*.dll, then system.*.dll and finally *.exe All three set of search results will be combined and will then be verified for Authenticode Signature
Inheritance: Microsoft.Build.Utilities.Task
Show file Open project: Azure/azure-powershell

Private Properties

Property Type Description
ApplyFileFilter string[]
GetFilesToVerifyAuthCodeSignature string[]
VerifyAllFiles bool
VerifyAuthenticodeSignature bool

Public Methods

Method Description
Execute ( ) : bool

Execute VerifyAuthenticodeSignature task

Private Methods

Method Description
ApplyFileFilter ( string dirToProbeForFiles ) : string[]

Apply filters to filter list of files that will be checked for authenticode signed

GetFilesToVerifyAuthCodeSignature ( ) : string[]

Get set of files that will ultimately be verified for AuthCode Signature If we find user has sepcified a probing directory, we will give priority to it and will ignore FilesToCheckAuthCodeSignature collection

VerifyAllFiles ( string signedFilesArray ) : bool

Verify if file is Authenticode Signed using PS cmdLet Get-AuthenticodeSignature

VerifyAuthenticodeSignature ( string providedFilePath ) : bool

Check for Authenticode Signature

Method Details

Execute() public method

Execute VerifyAuthenticodeSignature task
public Execute ( ) : bool
return bool