summary refs log tree commit diff
path: root/crypto/src/asn1/BERSetParser.cs
blob: aa9ccbc12424f12bfee3027adbd20a9f914d0b29 (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
namespace Org.BouncyCastle.Asn1
{
	public class BerSetParser
		: Asn1SetParser
	{
		private readonly Asn1StreamParser _parser;

		internal BerSetParser(
			Asn1StreamParser parser)
		{
			this._parser = parser;
		}

		public IAsn1Convertible ReadObject()
		{
			return _parser.ReadObject();
		}

		public Asn1Object ToAsn1Object()
		{
			return new BerSet(_parser.ReadVector(), false);
		}
	}
}