summary refs log tree commit diff
path: root/crypto/src/x509/IX509Extension.cs
blob: 7d7a06c04f0422bc0831d5373c0b27e65d546c91 (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
using System;
using System.Collections.Generic;

using Org.BouncyCastle.Asn1;

namespace Org.BouncyCastle.X509
{
	public interface IX509Extension
	{
		/// <summary>
		/// Get all critical extension values, by oid
		/// </summary>
		/// <returns>IDictionary with string (OID) keys and Asn1OctetString values</returns>
		ISet<string> GetCriticalExtensionOids();

		/// <summary>
		/// Get all non-critical extension values, by oid
		/// </summary>
		/// <returns>IDictionary with string (OID) keys and Asn1OctetString values</returns>
		ISet<string> GetNonCriticalExtensionOids();

		Asn1OctetString GetExtensionValue(DerObjectIdentifier oid);
	}
}