CertificateQuery.EnhancedKeyUsages 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取要搜索的增强密钥用法扩展 (OID) 对象标识符的集合。
public:
property IVector<Platform::String ^> ^ EnhancedKeyUsages { IVector<Platform::String ^> ^ get(); };
IVector<winrt::hstring> EnhancedKeyUsages();
public IList<string> EnhancedKeyUsages { get; }
var iVector = certificateQuery.enhancedKeyUsages;
Public ReadOnly Property EnhancedKeyUsages As IList(Of String)
属性值
对象标识符的集合 (OID) 要搜索的增强型密钥用法扩展。
示例
var query = new Windows.Security.Cryptography.Certificates.CertificateQuery();
query.issuerName = "Consoto Bank Issuing CA";
var enhancedKeyUsages = query.enhancedKeyUsages;
enhancedKeyUsage[0] = "1.3.6.1.5.5.7.3.2"; // client auth
var certificates;
Windows.Security.Cryptography.Certificates.
CertificateStores.findAllAsync(query).done(function(queriedCertificates)
{
certificates = queriedCertificates;
},
function(e)
{
WinJS.log("FindAllAsync failed, error:" + e.number + e.message);
});