summary refs log tree commit diff
path: root/crypto/src/asn1/x9/X9ECParametersHolder.cs
blob: b3455709c485cea425c8f6dcb794f2e00a947c15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace Org.BouncyCastle.Asn1.X9
{
	public abstract class X9ECParametersHolder
	{
		private X9ECParameters parameters;

		public X9ECParameters Parameters
		{
			get
			{
				if (parameters == null)
				{
					parameters = CreateParameters();
				}

				return parameters;
			}
		}

		protected abstract X9ECParameters CreateParameters();
	}
}