summary refs log tree commit diff
path: root/crypto/src/asn1/x9/X9ECParametersHolder.cs
blob: f0a320094eb7870f8a039a6abb68b9c51bb4d058 (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
namespace Org.BouncyCastle.Asn1.X9
{
	public abstract class X9ECParametersHolder
	{
		private X9ECParameters parameters;

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

                    return parameters;
                }
            }
		}

		protected abstract X9ECParameters CreateParameters();
	}
}