blob: a2a23c70b64e38b0fd225c1cc9c4da77c18500f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
using System;
namespace Org.BouncyCastle.Bcpg.OpenPgp
{
/// <remarks>A list of PGP signatures - normally in the signature block after literal data.</remarks>
public class PgpSignatureList
: PgpObject
{
private readonly PgpSignature[] sigs;
public PgpSignatureList(
PgpSignature[] sigs)
{
this.sigs = (PgpSignature[]) sigs.Clone();
}
public PgpSignatureList(
PgpSignature sig)
{
this.sigs = new PgpSignature[]{ sig };
}
public PgpSignature this[int index]
{
get { return sigs[index]; }
}
public int Count
{
get { return sigs.Length; }
}
public bool IsEmpty
{
get { return (sigs.Length == 0); }
}
}
}
|