Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CspParameters.cs « System.Security.Cryptography « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7c84eaff8af80f93ff5fbdb9d19e654f48367dc7 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// System.Security.Cryptography CspParameters.cs
//
// Author:
//   Thomas Neidhart (tome@sbox.tugraz.at)
//

using System;

namespace System.Security.Cryptography
{

	/// <summary>
	/// Contains information passed to Crypto Service Providers (CSP)
	/// </summary>
	public sealed class CspParameters
	{
		private CspProviderFlags _Flags;
	
		public CspParameters() : this(1) {}
		
		public CspParameters(int dwTypeIn) : this(dwTypeIn, null) {}
		
		public CspParameters(int dwTypeIn, string strProviderNameIn) : this(dwTypeIn, null, null) {}
		
		public CspParameters(int dwTypeIn, string strProviderNameIn, string strContainerNameIn)
		{
			ProviderType = dwTypeIn;
			ProviderName = strProviderNameIn;
			KeyContainerName = strContainerNameIn;
			
			// not defined in specs, only tested from M$ impl
			KeyNumber = -1;
		}
		
		public string KeyContainerName;
		
		public int KeyNumber;
		
		public string ProviderName;
		
		public int ProviderType;
		
		public CspProviderFlags Flags 
		{
			get {
				return _Flags;
			}
			
			set {
				_Flags = value;
			}
		}
		
	} // CspParameters
	
} // System.Security.Cryptography