/
CspKeyContainerInfo.NotSupported.cs
30 lines (27 loc) · 1.55 KB
/
CspKeyContainerInfo.NotSupported.cs
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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.Versioning;
namespace System.Security.Cryptography
{
[SupportedOSPlatform("windows")]
public sealed class CspKeyContainerInfo
{
public CspKeyContainerInfo(CspParameters parameters) { throw GetPlatformNotSupported(); }
public bool Accessible { get { throw GetPlatformNotSupported(); } }
public bool Exportable { get { throw GetPlatformNotSupported(); } }
public bool HardwareDevice { get { throw GetPlatformNotSupported(); } }
public string KeyContainerName { get { throw GetPlatformNotSupported(); } }
public KeyNumber KeyNumber { get { throw GetPlatformNotSupported(); } }
public bool MachineKeyStore { get { throw GetPlatformNotSupported(); } }
public bool Protected { get { throw GetPlatformNotSupported(); } }
public string ProviderName { get { throw GetPlatformNotSupported(); } }
public int ProviderType { get { throw GetPlatformNotSupported(); } }
public bool RandomlyGenerated { get { throw GetPlatformNotSupported(); } }
public bool Removable { get { throw GetPlatformNotSupported(); } }
public string UniqueKeyContainerName { get { throw GetPlatformNotSupported(); } }
private static PlatformNotSupportedException GetPlatformNotSupported()
{
return new PlatformNotSupportedException(SR.Format(SR.Cryptography_CAPI_Required, nameof(CspKeyContainerInfo)));
}
}
}