Class FeedUtils
- Namespace
- ZeroInstall.Store.Feeds
- Assembly
- ZeroInstall.Store.dll
Provides utility methods for managing Feeds.
public static class FeedUtils
- Inheritance
-
FeedUtils
- Inherited Members
Fields
SignatureBlockEnd
The string signifying the end of a signature block.
public const string SignatureBlockEnd = "\n-->\n"
Field Value
SignatureBlockStart
The string signifying the start of a signature block.
public const string SignatureBlockStart = "<!-- Base64 Signature\n"
Field Value
Methods
GetSignatures(IOpenPgp, byte[])
Determines which signatures a feed is signed with.
public static IEnumerable<OpenPgpSignature> GetSignatures(IOpenPgp openPgp, byte[] feedData)
Parameters
openPgp
IOpenPgpThe OpenPGP-compatible system used to validate the signatures.
feedData
byte[]The feed data containing an embedded signature.
Returns
- IEnumerable<OpenPgpSignature>
A list of signatures found, both valid and invalid. Empty list if no signature block is found.
Exceptions
- SignatureException
A signature block was found but it could not be parsed.