using System; using System.Runtime.InteropServices; using System.Security.AccessControl; namespace System.Security.Cryptography { /// Provides additional information about a cryptographic key pair. This class cannot be inherited. // Token: 0x020004F3 RID: 1267 [ComVisible(true)] public sealed class CspKeyContainerInfo { /// Initializes a new instance of the class using the specified parameters. /// A object that provides information about the key. // Token: 0x06002ED8 RID: 11992 RVA: 0x00096B08 File Offset: 0x00094D08 public CspKeyContainerInfo(CspParameters parameters) { this._params = parameters; this._random = true; } /// Gets a value indicating whether a key in a key container is accessible. /// true if the key is accessible; otherwise, false. /// The key type is not supported. // Token: 0x1700093A RID: 2362 // (get) Token: 0x06002ED9 RID: 11993 RVA: 0x00096B20 File Offset: 0x00094D20 public bool Accessible { get { return true; } } /// Gets a object that represents access rights and audit rules for a container. /// A object that represents access rights and audit rules for a container. /// The key type is not supported. /// The cryptographic service provider cannot be found.-or-The key container was not found. // Token: 0x1700093B RID: 2363 // (get) Token: 0x06002EDA RID: 11994 RVA: 0x00096B24 File Offset: 0x00094D24 public CryptoKeySecurity CryptoKeySecurity { get { return null; } } /// Gets a value indicating whether a key can be exported from a key container. /// true if the key can be exported; otherwise, false. /// The key type is not supported. /// The cryptographic service provider cannot be found.-or-The key container was not found. // Token: 0x1700093C RID: 2364 // (get) Token: 0x06002EDB RID: 11995 RVA: 0x00096B28 File Offset: 0x00094D28 public bool Exportable { get { return true; } } /// Gets a value indicating whether a key is a hardware key. /// true if the key is a hardware key; otherwise, false. /// The cryptographic service provider cannot be found. // Token: 0x1700093D RID: 2365 // (get) Token: 0x06002EDC RID: 11996 RVA: 0x00096B2C File Offset: 0x00094D2C public bool HardwareDevice { get { return false; } } /// Gets a key container name. /// The key container name. // Token: 0x1700093E RID: 2366 // (get) Token: 0x06002EDD RID: 11997 RVA: 0x00096B30 File Offset: 0x00094D30 public string KeyContainerName { get { return this._params.KeyContainerName; } } /// Gets a value that describes whether an asymmetric key was created as a signature key or an exchange key. /// One of the values that describes whether an asymmetric key was created as a signature key or an exchange key. // Token: 0x1700093F RID: 2367 // (get) Token: 0x06002EDE RID: 11998 RVA: 0x00096B40 File Offset: 0x00094D40 public KeyNumber KeyNumber { get { return (KeyNumber)this._params.KeyNumber; } } /// Gets a value indicating whether a key is from a machine key set. /// true if the key is from the machine key set; otherwise, false. // Token: 0x17000940 RID: 2368 // (get) Token: 0x06002EDF RID: 11999 RVA: 0x00096B50 File Offset: 0x00094D50 public bool MachineKeyStore { get { return false; } } /// Gets a value indicating whether a key pair is protected. /// true if the key pair is protected; otherwise, false. /// The key type is not supported. /// The cryptographic service provider cannot be found.-or-The key container was not found. // Token: 0x17000941 RID: 2369 // (get) Token: 0x06002EE0 RID: 12000 RVA: 0x00096B54 File Offset: 0x00094D54 public bool Protected { get { return false; } } /// Gets the provider name of a key. /// The provider name. // Token: 0x17000942 RID: 2370 // (get) Token: 0x06002EE1 RID: 12001 RVA: 0x00096B58 File Offset: 0x00094D58 public string ProviderName { get { return this._params.ProviderName; } } /// Gets the provider type of a key. /// The provider type. The default is 1. // Token: 0x17000943 RID: 2371 // (get) Token: 0x06002EE2 RID: 12002 RVA: 0x00096B68 File Offset: 0x00094D68 public int ProviderType { get { return this._params.ProviderType; } } /// Gets a value indicating whether a key container was randomly generated by a managed cryptography class. /// true if the key container was randomly generated; otherwise, false. // Token: 0x17000944 RID: 2372 // (get) Token: 0x06002EE3 RID: 12003 RVA: 0x00096B78 File Offset: 0x00094D78 public bool RandomlyGenerated { get { return this._random; } } /// Gets a value indicating whether a key can be removed from a key container. /// true if the key is removable; otherwise, false. /// The cryptographic service provider (CSP) was not found. // Token: 0x17000945 RID: 2373 // (get) Token: 0x06002EE4 RID: 12004 RVA: 0x00096B80 File Offset: 0x00094D80 public bool Removable { get { return false; } } /// Gets a unique key container name. /// The unique key container name. /// The key type is not supported. /// The cryptographic service provider cannot be found.-or-The key container was not found. // Token: 0x17000946 RID: 2374 // (get) Token: 0x06002EE5 RID: 12005 RVA: 0x00096B84 File Offset: 0x00094D84 public string UniqueKeyContainerName { get { return this._params.ProviderName + "\\" + this._params.KeyContainerName; } } // Token: 0x04001314 RID: 4884 private CspParameters _params; // Token: 0x04001315 RID: 4885 internal bool _random; } }