C# Class ZeroInstall.Publish.FeedUtils

Helper methods for manipulating Feeds.
显示文件 Open project: 0install/0install-win Class Usage Examples

Public Methods

Method Description
DeployStylesheet ( [ path, [ name ) : void

Writes an XSL stylesheet with its accompanying CSS file unless there is already an XSL in place.

SignFeed ( [ stream, [ secretKey, [ passphrase, [ openPgp ) : void

Adds a Base64 signature to a feed or catalog stream.

The file is not parsed before signing; invalid XML files are signed as well. The existing file must end with a line break. Old signatures are not removed.

Private Methods

Method Description
GetKey ( [ path, [ openPgp ) : OpenPgpSecretKey

Method Details

DeployStylesheet() public static method

Writes an XSL stylesheet with its accompanying CSS file unless there is already an XSL in place.
Failed to write the sytelsheet files. Write access to the directory is not permitted.
public static DeployStylesheet ( [ path, [ name ) : void
path [ The directory to write the stylesheet files to.
name [ The name of the stylesheet to deploy. Must be "feed" or "catalog".
return void

SignFeed() public static method

Adds a Base64 signature to a feed or catalog stream.
The file is not parsed before signing; invalid XML files are signed as well. The existing file must end with a line break. Old signatures are not removed.
The file could not be read or written. Read or write access to the file is not permitted. The specified could not be found on the system. was incorrect.
public static SignFeed ( [ stream, [ secretKey, [ passphrase, [ openPgp ) : void
stream [ The feed or catalog to sign.
secretKey [ The secret key to use for signing the file.
passphrase [ The passphrase to use to unlock the key.
openPgp [ The OpenPGP-compatible system used to create signatures.
return void