你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TpmAttestation(String, String) 构造函数

定义

用于序列化和单元测试的构造函数。

[Newtonsoft.Json.JsonConstructor]
public TpmAttestation(string endorsementKey, string storageRootKey = default);
[<Newtonsoft.Json.JsonConstructor>]
new Microsoft.Azure.Devices.Provisioning.Service.TpmAttestation : string * string -> Microsoft.Azure.Devices.Provisioning.Service.TpmAttestation
Public Sub New (endorsementKey As String, Optional storageRootKey As String = Nothing)

参数

endorsementKey
String

具有 TPM 认可密钥的字符串。 该名称不能为 null 或为空。

storageRootKey
String

具有 TPM 存储根密钥的字符串。 可为 null 或为空。

属性
Newtonsoft.Json.JsonConstructorAttribute

例外

如果提供的 endorsementKey 为 null。

如果提供的 endorsementKey 为空或空格。

注解

此函数将使用认可密钥和存储根密钥创建 TPM 证明的新实例。 只有认可密钥是必需的。

适用于