EasySign BETA
Digital Signing Tool
|
Represents a manifest that holds entries of file names and their corresponding hashes. More...
Public Member Functions | |
ConcurrentDictionary< string, byte[]> | GetEntries () |
Gets the entries as a thread-safe concurrent dictionary. | |
void | AddEntry (string entryName, byte[] hash) |
Adds an entry to the manifest. | |
void | DeleteEntry (string entryName) |
Deletes an entry from the manifest. | |
Static Public Member Functions | |
static string | GetNormalizedEntryName (string path) |
Converts the path to an standard zip entry name. | |
Properties | |
string? | UpdatedBy [get, set] |
Gets or sets the full name of the class that updated the manifest. | |
SortedDictionary< string, byte[]> | Entries [get, set] |
Gets or sets the entries in the manifest as a sorted dictionary. | |
bool | StoreOriginalFiles [get, set] |
Gets or sets a value indicating whether the files should be stored in the bundle. | |
HashSet< string > | ProtectedEntryNames = [] [get, set] |
Gets or sets the list of entry names that should be protected by the bundle from accidental modifications. | |
Represents a manifest that holds entries of file names and their corresponding hashes.
Definition at line 10 of file Manifest.cs.
void SAPTeam.EasySign.Manifest.AddEntry | ( | string | entryName, |
byte[] | hash ) |
Adds an entry to the manifest.
An exception will be thrown if the entry already exists.
entryName | The name of the entry to add. |
hash | The hash of the entry to add. |
DuplicateNameException |
Definition at line 58 of file Manifest.cs.
Referenced by SAPTeam.EasySign.Bundle.AddEntry().
void SAPTeam.EasySign.Manifest.DeleteEntry | ( | string | entryName | ) |
Deletes an entry from the manifest.
An exception will be thrown if the entry does not exist.
entryName | The name of the entry to delete. |
KeyNotFoundException |
Definition at line 72 of file Manifest.cs.
Referenced by SAPTeam.EasySign.Bundle.DeleteEntry().
ConcurrentDictionary< string, byte[]> SAPTeam.EasySign.Manifest.GetEntries | ( | ) |
Gets the entries as a thread-safe concurrent dictionary.
Referenced by SAPTeam.EasySign.Bundle.VerifyFile().
|
static |
Converts the path to an standard zip entry name.
path | The path to convert. |
Referenced by SAPTeam.EasySign.Bundle.AddEntry(), and SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunAdd().
|
getset |
Gets or sets the entries in the manifest as a sorted dictionary.
Note that this property is only for serialization purposes. Use GetEntries to get the entries as a concurrent dictionary. you can use this property to get a copy of the entries as a sorted dictionary but any changes made to it will be ignored.
Definition at line 26 of file Manifest.cs.
Referenced by SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunAdd(), SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunInfo(), and SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunVerify().
|
getset |
Gets or sets the list of entry names that should be protected by the bundle from accidental modifications.
Definition at line 39 of file Manifest.cs.
Referenced by SAPTeam.EasySign.Bundle.GetManifestData(), SAPTeam.EasySign.Bundle.Parse(), and SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunInfo().
|
getset |
Gets or sets a value indicating whether the files should be stored in the bundle.
Definition at line 34 of file Manifest.cs.
Referenced by SAPTeam.EasySign.Bundle.AddEntry(), SAPTeam.EasySign.Bundle.DeleteEntry(), and SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunInfo().
|
getset |
Gets or sets the full name of the class that updated the manifest.
Definition at line 17 of file Manifest.cs.
Referenced by SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.LoadBundle(), and SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunInfo().