2 // CspKeyContainerInfo.cs: Information about CSP based key containers
5 // Sebastien Pouliot (spouliot@motus.com)
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
14 namespace System.Security.Cryptography {
16 public sealed class CspKeyContainerInfo {
18 private CspParameters _params;
19 internal bool _random;
23 public CspKeyContainerInfo (CspParameters parameters)
26 _random = true; // by default we always generate a key
31 // always true for Mono
32 public bool Accessible {
36 // always true for Mono
37 public bool Exportable {
41 // always false for Mono
42 public bool HardwareDevice {
46 public string KeyContainerName {
47 get { return _params.KeyContainerName; }
50 public KeyNumber KeyNumber {
51 get { return (KeyNumber)_params.KeyNumber; }
54 // always false for Mono
55 public bool MachineKeyStore {
59 // always false for Mono
60 public bool Protected {
64 public string ProviderName {
65 get { return _params.ProviderName; }
68 public int ProviderType {
69 get { return _params.ProviderType; }
72 // true if generated, false if imported
73 public bool RandomlyGenerated {
74 get { return _random; }
77 // always false for Mono
78 public bool Removable {
82 public string UniqueKeyContainerName {
83 get { return _params.ProviderName + "\\" + _params.KeyContainerName; }