C# Класс ZeroInstall.Publish.FeedUtils

Helper methods for manipulating Feeds.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetKey ( [ path, [ openPgp ) : OpenPgpSecretKey

Описание методов

DeployStylesheet() публичный статический Метод

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".
Результат void

SignFeed() публичный статический Метод

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.
Результат void