EasySign BETA
Digital Signing Tool
|
Represents a bundle that holds file hashes and signatures. More...
Public Member Functions | |
Bundle (string bundlePath, ILogger? logger=null, int maxCacheSize=0x8000000) | |
Initializes a new instance of the Bundle class. | |
ZipArchive | GetZipArchive (ZipArchiveMode mode=ZipArchiveMode.Read) |
Gets a ZipArchive for the bundle. | |
void | LoadFromFile (bool readOnly=true) |
Loads the bundle from the file system. | |
void | LoadFromBytes (byte[] bundleContent) |
Loads the bundle from a byte array. | |
void | AddEntry (string path, string destinationPath="./", string? rootPath=null) |
Adds a file entry to the bundle. | |
void | DeleteEntry (string entryName) |
Deletes an entry from the bundle. | |
void | Sign (X509Certificate2 certificate, RSA privateKey) |
Signs the bundle with the specified certificate and private key. | |
bool | VerifyFile (string entryName) |
Verifies the integrity of a file in the bundle. | |
bool | VerifySignature (string certificateHash) |
Verifies the signature of the bundle using the specified certificate hash. | |
bool | VerifyCertificate (string certificateHash, out X509ChainStatus[] statuses, X509ChainPolicy? policy=null) |
Verifies the validity of a certificate using the specified certificate hash. | |
bool | VerifyCertificate (string certificateHash, X509ChainPolicy? policy=null) |
Verifies the validity of a certificate using the specified certificate hash. | |
bool | VerifyCertificate (X509Certificate2 certificate, out X509ChainStatus[] statuses, X509ChainPolicy? policy=null) |
Verifies the validity of a certificate. | |
bool | VerifyCertificate (X509Certificate2 certificate, X509ChainPolicy? policy=null) |
Verifies the validity of a certificate. | |
X509Certificate2 | GetCertificate (string certificateHash) |
Gets a certificate from the bundle using the specified certificate hash. | |
byte[] | GetBytes (string entryName, ReadSource readSource) |
Gets the data of an entry in the bundle as bytes array and caches the entry data if the bundle is Read-only. | |
Stream | GetStream (string entryName, ReadSource readSource=ReadSource.Automatic) |
Gets a read-only stream for an entry in the bundle and caches the entry data if the bundle is Read-only. | |
bool | Exists (string entryName, ReadSource readSource=ReadSource.Automatic) |
Checks whether an entry exists in the bundle or on the disk. | |
void | Update () |
Writes changes to the bundle file. | |
Protected Member Functions | |
void | EnsureWritable () |
Throws an exception if the bundle is read-only. | |
bool | CheckEntryNameSecurity (string entryName, bool throwException=true) |
Checks whether the entry name is protected and throws an exception if it is. | |
bool | CacheEntry (string entryName, byte[] data) |
Caches an entry in memory. | |
virtual void | Parse (ZipArchive zip) |
Parses the bundle contents from a ZipArchive. | |
ReadSource | GetReadSource (string entryName, ReadSource readSource=ReadSource.Automatic) |
Gets the read source for an entry name. | |
virtual byte[] | GetManifestData () |
Gets the manifest data as a byte array. | |
byte[] | Export (object structuredData, JsonSerializerContext jsonSerializerContext) |
Exports the specified structured data to a byte array. | |
byte[] | Export (object structuredData) |
Exports the specified structured data to a byte array. | |
void | WriteEntry (ZipArchive zip, string entryName, byte[] data) |
Writes an entry to a ZipArchive. | |
Static Protected Member Functions | |
static byte[] | ReadStream (Stream stream) |
Reads a stream into a byte array. | |
static byte[] | ComputeSHA512Hash (Stream stream) |
Computes the SHA-512 hash of a stream. | |
static byte[] | ComputeSHA512Hash (byte[] data) |
Computes the SHA-512 hash of a byte array. | |
Protected Attributes | |
readonly JsonSerializerOptions | SerializerOptions |
Gets the JSON serializer options. | |
Properties | |
ILogger | Logger [get] |
Gets the logger to use for logging. | |
HashSet< string > | ProtectedEntryNames [get] |
Gets the list of sensitive names. | |
virtual string | DefaultBundleName [get] |
Gets the default name of the bundle. | |
string | RootPath [get] |
Gets the root path of the bundle. | |
string | BundleName [get] |
Gets the name of the bundle file. | |
string | BundlePath [get] |
Gets the full path of the bundle file. | |
Manifest | Manifest = new() [get] |
Gets the manifest of the bundle. | |
Signatures | Signatures = new() [get] |
Gets the signatures of the bundle. | |
bool | ReadOnly [get] |
Gets a value indicating whether the bundle is read-only. | |
bool | LoadedFromMemory [get] |
Gets a value indicating whether the bundle is loaded from memory. | |
bool | Loaded [get] |
Gets a value indicating whether the bundle is loaded. | |
Events | |
Action< ZipArchive >? | Updating |
Occurs when the bundle file is being updated. | |
SAPTeam.EasySign.Bundle.Bundle | ( | string | bundlePath, |
ILogger? | logger = null, | ||
int | maxCacheSize = 0x8000000 ) |
Initializes a new instance of the Bundle class.
bundlePath | The path of the bundle. |
logger | The logger to use for logging. |
maxCacheSize | The maximum size of the cache in bytes. |
Definition at line 121 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.DefaultBundleName, SAPTeam.EasySign.Bundle.Logger, and SAPTeam.EasySign.Bundle.RootPath.
void SAPTeam.EasySign.Bundle.AddEntry | ( | string | path, |
string | destinationPath = "./", | ||
string? | rootPath = null ) |
Adds a file entry to the bundle.
if the Manifest.StoreOriginalFiles is true
, the file will be embedded in the bundle and it's hash added to manifest. Otherwise just the file hash added to the bundle.
path | The path of the file to add. |
destinationPath | The destination path within the bundle. Ignore when Manifest.StoreOriginalFiles is false |
rootPath | The root path for relative paths. |
Definition at line 361 of file Bundle.cs.
References SAPTeam.EasySign.Manifest.AddEntry(), SAPTeam.EasySign.Bundle.CheckEntryNameSecurity(), SAPTeam.EasySign.Bundle.ComputeSHA512Hash(), SAPTeam.EasySign.Bundle.EnsureWritable(), SAPTeam.EasySign.Manifest.GetNormalizedEntryName(), SAPTeam.EasySign.Bundle.Logger, SAPTeam.EasySign.Bundle.RootPath, and SAPTeam.EasySign.Manifest.StoreOriginalFiles.
Referenced by SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunAdd().
|
protected |
Caches an entry in memory.
entryName | The name of the entry to cache. |
data | The data of the entry to cache. |
true
if the entry was cached; otherwise, false
.Definition at line 194 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.Logger, and SAPTeam.EasySign.Bundle.ReadOnly.
Referenced by SAPTeam.EasySign.Bundle.GetBytes().
|
protected |
Checks whether the entry name is protected and throws an exception if it is.
entryName | The name of the entry to check. |
throwException | Whether to throw an exception if the entry name is protected. |
UnauthorizedAccessException |
Definition at line 161 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.ProtectedEntryNames.
Referenced by SAPTeam.EasySign.Bundle.AddEntry(), SAPTeam.EasySign.Bundle.DeleteEntry(), and SAPTeam.EasySign.Bundle.GetReadSource().
|
staticprotected |
|
staticprotected |
Computes the SHA-512 hash of a stream.
stream | The stream to hash. |
Definition at line 897 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.AddEntry(), SAPTeam.EasySign.Bundle.VerifyFile(), and SAPTeam.EasySign.Bundle.VerifySignature().
void SAPTeam.EasySign.Bundle.DeleteEntry | ( | string | entryName | ) |
Deletes an entry from the bundle.
entryName | The name of the entry to delete. |
Definition at line 406 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.CheckEntryNameSecurity(), SAPTeam.EasySign.Manifest.DeleteEntry(), SAPTeam.EasySign.Bundle.EnsureWritable(), SAPTeam.EasySign.Bundle.Logger, and SAPTeam.EasySign.Manifest.StoreOriginalFiles.
Referenced by SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunAdd().
|
protected |
Throws an exception if the bundle is read-only.
Definition at line 146 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.ReadOnly.
Referenced by SAPTeam.EasySign.Bundle.AddEntry(), SAPTeam.EasySign.Bundle.DeleteEntry(), SAPTeam.EasySign.Bundle.GetZipArchive(), SAPTeam.EasySign.Bundle.Sign(), and SAPTeam.EasySign.Bundle.Update().
bool SAPTeam.EasySign.Bundle.Exists | ( | string | entryName, |
ReadSource | readSource = ReadSource::Automatic ) |
Checks whether an entry exists in the bundle or on the disk.
entryName | The name of the entry to check. |
readSource | The source from which to check the entry. |
true
if the entry exists; otherwise, false
. Definition at line 675 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.GetReadSource(), SAPTeam.EasySign.Bundle.GetZipArchive(), SAPTeam.EasySign.Bundle.Logger, and SAPTeam.EasySign.Bundle.RootPath.
|
protected |
Exports the specified structured data to a byte array.
structuredData | The structured data to export. |
Definition at line 819 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.Logger, and SAPTeam.EasySign.Bundle.SerializerOptions.
|
protected |
Exports the specified structured data to a byte array.
structuredData | The structured data to export. |
jsonSerializerContext | A metadata provider for serializable types. |
Definition at line 797 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.Logger.
Referenced by SAPTeam.EasySign.Bundle.GetManifestData(), and SAPTeam.EasySign.Bundle.Update().
byte[] SAPTeam.EasySign.Bundle.GetBytes | ( | string | entryName, |
ReadSource | readSource ) |
Gets the data of an entry in the bundle as bytes array and caches the entry data if the bundle is Read-only.
Protected entries are only resolved with ReadSource.Bundle.
entryName | The name of the entry to get the bytes for. |
readSource | The source from which to read the data. |
Definition at line 597 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.CacheEntry(), SAPTeam.EasySign.Bundle.GetStream(), SAPTeam.EasySign.Bundle.Logger, and SAPTeam.EasySign.Bundle.ReadStream().
Referenced by SAPTeam.EasySign.Bundle.VerifySignature().
X509Certificate2 SAPTeam.EasySign.Bundle.GetCertificate | ( | string | certificateHash | ) |
Gets a certificate from the bundle using the specified certificate hash.
and caches the certificate if the bundle is Read-only.
certificateHash | The hash of the certificate to get. |
Definition at line 571 of file Bundle.cs.
References SAPTeam.EasySign.Signatures.Certificates, and SAPTeam.EasySign.Bundle.Logger.
Referenced by SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunInfo(), SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunVerify(), SAPTeam.EasySign.Bundle.VerifyCertificate(), and SAPTeam.EasySign.Bundle.VerifySignature().
|
protectedvirtual |
Gets the manifest data as a byte array.
Definition at line 783 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.Export(), SAPTeam.EasySign.Bundle.ProtectedEntryNames, and SAPTeam.EasySign.Manifest.ProtectedEntryNames.
Referenced by SAPTeam.EasySign.Bundle.Sign(), and SAPTeam.EasySign.Bundle.Update().
|
protected |
Gets the read source for an entry name.
entryName | The name of the entry to get the read source for. |
readSource | The suggested read source. |
Definition at line 711 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.CheckEntryNameSecurity().
Referenced by SAPTeam.EasySign.Bundle.Exists(), and SAPTeam.EasySign.Bundle.GetStream().
Stream SAPTeam.EasySign.Bundle.GetStream | ( | string | entryName, |
ReadSource | readSource = ReadSource::Automatic ) |
Gets a read-only stream for an entry in the bundle and caches the entry data if the bundle is Read-only.
Protected entries are only resolved with ReadSource.Bundle.
entryName | The name of the entry to get the stream for. |
readSource | The source from which to read the data. |
Definition at line 623 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.GetReadSource(), SAPTeam.EasySign.Bundle.GetZipArchive(), SAPTeam.EasySign.Bundle.Logger, and SAPTeam.EasySign.Bundle.RootPath.
Referenced by SAPTeam.EasySign.Bundle.GetBytes(), and SAPTeam.EasySign.Bundle.VerifyFile().
ZipArchive SAPTeam.EasySign.Bundle.GetZipArchive | ( | ZipArchiveMode | mode = ZipArchiveMode::Read | ) |
Gets a ZipArchive for the bundle.
mode | The mode in which to open the archive. |
Definition at line 227 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.BundlePath, SAPTeam.EasySign.Bundle.EnsureWritable(), SAPTeam.EasySign.Bundle.LoadedFromMemory, SAPTeam.EasySign.Bundle.Logger, SAPTeam.EasySign.Bundle.ReadOnly, and SAPTeam.EasySign.Bundle.ReadStream().
Referenced by SAPTeam.EasySign.Bundle.Exists(), SAPTeam.EasySign.Bundle.GetStream(), SAPTeam.EasySign.Bundle.LoadFromBytes(), SAPTeam.EasySign.Bundle.LoadFromFile(), and SAPTeam.EasySign.Bundle.Update().
void SAPTeam.EasySign.Bundle.LoadFromBytes | ( | byte[] | bundleContent | ) |
Loads the bundle from a byte array.
This method is more secure and faster than loading from the file as it stores the bundle in memory.
bundleContent | The byte array containing the bundle content. |
Definition at line 299 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.GetZipArchive(), SAPTeam.EasySign.Bundle.Loaded, SAPTeam.EasySign.Bundle.Logger, SAPTeam.EasySign.Bundle.Parse(), and SAPTeam.EasySign.Bundle.ReadOnly.
void SAPTeam.EasySign.Bundle.LoadFromFile | ( | bool | readOnly = true | ) |
Loads the bundle from the file system.
readOnly | Whether to load the bundle in read-only mode. |
Definition at line 276 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.BundlePath, SAPTeam.EasySign.Bundle.GetZipArchive(), SAPTeam.EasySign.Bundle.Loaded, SAPTeam.EasySign.Bundle.Logger, SAPTeam.EasySign.Bundle.Parse(), and SAPTeam.EasySign.Bundle.ReadOnly.
Referenced by SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.LoadBundle().
|
protectedvirtual |
Parses the bundle contents from a ZipArchive.
zip | The ZipArchive to read from. |
Definition at line 323 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.Logger, SAPTeam.EasySign.Bundle.Manifest, SAPTeam.EasySign.Bundle.ProtectedEntryNames, SAPTeam.EasySign.Manifest.ProtectedEntryNames, and SAPTeam.EasySign.Bundle.Signatures.
Referenced by SAPTeam.EasySign.Bundle.LoadFromBytes(), and SAPTeam.EasySign.Bundle.LoadFromFile().
|
staticprotected |
Reads a stream into a byte array.
stream | The stream to read. |
Definition at line 872 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.GetBytes(), and SAPTeam.EasySign.Bundle.GetZipArchive().
void SAPTeam.EasySign.Bundle.Sign | ( | X509Certificate2 | certificate, |
RSA | privateKey ) |
Signs the bundle with the specified certificate and private key.
certificate | The certificate to use for signing. |
privateKey | The private key to use for signing. |
Definition at line 437 of file Bundle.cs.
References SAPTeam.EasySign.Signatures.Certificates, SAPTeam.EasySign.Bundle.EnsureWritable(), SAPTeam.EasySign.Signatures.Entries, SAPTeam.EasySign.Bundle.GetManifestData(), and SAPTeam.EasySign.Bundle.Logger.
Referenced by SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunSign().
void SAPTeam.EasySign.Bundle.Update | ( | ) |
Writes changes to the bundle file.
Definition at line 731 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.BundlePath, SAPTeam.EasySign.Bundle.EnsureWritable(), SAPTeam.EasySign.Bundle.Export(), SAPTeam.EasySign.Bundle.GetManifestData(), SAPTeam.EasySign.Bundle.GetZipArchive(), SAPTeam.EasySign.Bundle.Logger, SAPTeam.EasySign.Bundle.Updating, and SAPTeam.EasySign.Bundle.WriteEntry().
Referenced by SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunAdd(), and SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunSign().
bool SAPTeam.EasySign.Bundle.VerifyCertificate | ( | string | certificateHash, |
out X509ChainStatus[] | statuses, | ||
X509ChainPolicy? | policy = null ) |
Verifies the validity of a certificate using the specified certificate hash.
certificateHash | The hash of the certificate to verify. |
statuses | The chain statuses of the certificate. |
policy | The chain policy to use for verification. |
Definition at line 511 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.GetCertificate(), and SAPTeam.EasySign.Bundle.VerifyCertificate().
Referenced by SAPTeam.EasySign.Bundle.VerifyCertificate(), and SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.VerifyCertificateImpl().
bool SAPTeam.EasySign.Bundle.VerifyCertificate | ( | string | certificateHash, |
X509ChainPolicy? | policy = null ) |
Verifies the validity of a certificate using the specified certificate hash.
certificateHash | The hash of the certificate to verify. |
policy | The chain policy to use for verification. |
bool SAPTeam.EasySign.Bundle.VerifyCertificate | ( | X509Certificate2 | certificate, |
out X509ChainStatus[] | statuses, | ||
X509ChainPolicy? | policy = null ) |
Verifies the validity of a certificate.
certificate | The certificate to verify. |
statuses | The chain statuses of the certificate. |
policy | The chain policy to use for verification. |
Definition at line 534 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.Logger.
bool SAPTeam.EasySign.Bundle.VerifyCertificate | ( | X509Certificate2 | certificate, |
X509ChainPolicy? | policy = null ) |
Verifies the validity of a certificate.
certificate | The certificate to verify. |
policy | The chain policy to use for verification. |
bool SAPTeam.EasySign.Bundle.VerifyFile | ( | string | entryName | ) |
Verifies the integrity of a file in the bundle.
entryName | The name of the entry to verify. |
Definition at line 466 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.ComputeSHA512Hash(), SAPTeam.EasySign.Manifest.GetEntries(), SAPTeam.EasySign.Bundle.GetStream(), and SAPTeam.EasySign.Bundle.Logger.
bool SAPTeam.EasySign.Bundle.VerifySignature | ( | string | certificateHash | ) |
Verifies the signature of the bundle using the specified certificate hash.
certificateHash | The hash of the certificate to use for verification. |
Definition at line 486 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.ComputeSHA512Hash(), SAPTeam.EasySign.Signatures.Entries, SAPTeam.EasySign.Bundle.GetBytes(), SAPTeam.EasySign.Bundle.GetCertificate(), and SAPTeam.EasySign.Bundle.Logger.
Referenced by SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunVerify().
|
protected |
Writes an entry to a ZipArchive.
if the entry is already exists, it will be deleted.
zip | The ZipArchive to write to. |
entryName | The name of the entry to write. |
data | The data to write. |
Definition at line 836 of file Bundle.cs.
References SAPTeam.EasySign.Bundle.Logger.
Referenced by SAPTeam.EasySign.Bundle.Update().
|
protected |
Gets the JSON serializer options.
Definition at line 37 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.Export().
|
get |
|
get |
Gets the full path of the bundle file.
Definition at line 83 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.GetZipArchive(), SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.LoadBundle(), SAPTeam.EasySign.Bundle.LoadFromFile(), SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunAdd(), SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunInfo(), and SAPTeam.EasySign.Bundle.Update().
|
getprotected |
Gets the default name of the bundle.
Only used when the bundle path does not specify a file name.
Definition at line 68 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.Bundle().
|
get |
Gets a value indicating whether the bundle is loaded.
Definition at line 108 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.LoadFromBytes(), SAPTeam.EasySign.Bundle.LoadFromFile(), and SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunAdd().
|
get |
Gets a value indicating whether the bundle is loaded from memory.
Definition at line 103 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.GetZipArchive().
|
getprotected |
Gets the logger to use for logging.
Definition at line 46 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.AddEntry(), SAPTeam.EasySign.Bundle.Bundle(), SAPTeam.EasySign.Bundle.CacheEntry(), SAPTeam.EasySign.Bundle.DeleteEntry(), SAPTeam.EasySign.Bundle.Exists(), SAPTeam.EasySign.Bundle.Export(), SAPTeam.EasySign.Bundle.Export(), SAPTeam.EasySign.Bundle.GetBytes(), SAPTeam.EasySign.Bundle.GetCertificate(), SAPTeam.EasySign.Bundle.GetStream(), SAPTeam.EasySign.Bundle.GetZipArchive(), SAPTeam.EasySign.Bundle.LoadFromBytes(), SAPTeam.EasySign.Bundle.LoadFromFile(), SAPTeam.EasySign.Bundle.Parse(), SAPTeam.EasySign.Bundle.Sign(), SAPTeam.EasySign.Bundle.Update(), SAPTeam.EasySign.Bundle.VerifyCertificate(), SAPTeam.EasySign.Bundle.VerifyFile(), SAPTeam.EasySign.Bundle.VerifySignature(), and SAPTeam.EasySign.Bundle.WriteEntry().
|
get |
Gets the manifest of the bundle.
The manifest contains all files hashes and bundle configurations.
Definition at line 88 of file Bundle.cs.
Referenced by SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.LoadBundle(), SAPTeam.EasySign.Bundle.Parse(), SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunAdd(), SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunInfo(), and SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunVerify().
|
getprotected |
Gets the list of sensitive names.
Regex patterns are supported.
These names are not allowed for add or delete through AddEntry(string, string, string) or DeleteEntry(string). The entries with these names are only resolved with ReadSource.Bundle. This feature is only designed to prevent accidental modification of important files.
Definition at line 56 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.CheckEntryNameSecurity(), SAPTeam.EasySign.Bundle.GetManifestData(), and SAPTeam.EasySign.Bundle.Parse().
|
get |
Gets a value indicating whether the bundle is read-only.
Definition at line 98 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.CacheEntry(), SAPTeam.EasySign.Bundle.EnsureWritable(), SAPTeam.EasySign.Bundle.GetZipArchive(), SAPTeam.EasySign.Bundle.LoadFromBytes(), and SAPTeam.EasySign.Bundle.LoadFromFile().
|
get |
Gets the root path of the bundle.
This path used for relative path resolution.
Definition at line 73 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.AddEntry(), SAPTeam.EasySign.Bundle.Bundle(), SAPTeam.EasySign.Bundle.Exists(), SAPTeam.EasySign.Bundle.GetStream(), and SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunAdd().
|
get |
Gets the signatures of the bundle.
Definition at line 93 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.Parse(), SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunAdd(), SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunInfo(), and SAPTeam.EasySign.CommandLine.CommandProvider< TBundle, TConfiguration >.RunVerify().
Action<ZipArchive>? SAPTeam.EasySign.Bundle.Updating |
Occurs when the bundle file is being updated.
Definition at line 113 of file Bundle.cs.
Referenced by SAPTeam.EasySign.Bundle.Update().