ResultData.GetAuthenticatedData 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回包含检索数据的 CBOR 结构。
[Android.Runtime.Register("getAuthenticatedData", "()[B", "GetGetAuthenticatedDataHandler", ApiSince=30)]
public abstract byte[] GetAuthenticatedData();
[<Android.Runtime.Register("getAuthenticatedData", "()[B", "GetGetAuthenticatedDataHandler", ApiSince=30)>]
abstract member GetAuthenticatedData : unit -> byte[]
返回
Byte[]
CBOR 结构的字节 DeviceNameSpaces 。
- 属性
注解
返回包含检索数据的 CBOR 结构。
此结构(以及会话脚本)可以通过加密方式进行身份验证,以向读取者证明数据来自受信任的凭据,并 #getMessageAuthenticationCode() 可用于获取 MAC。
通过加密方式进行身份验证的 CBOR 结构是 DeviceAuthenticationBytes 以下 CDDL 架构的结构:
DeviceAuthentication = [
"DeviceAuthentication",
SessionTranscript,
DocType,
DeviceNameSpacesBytes
]
DocType = tstr
SessionTranscript = any
DeviceNameSpacesBytes = #6.24(bstr .cbor DeviceNameSpaces)
DeviceAuthenticationBytes = #6.24(bstr .cbor DeviceAuthentication)
where
DeviceNameSpaces = {
* NameSpace => DeviceSignedItems
}
DeviceSignedItems = {
+ DataItemName => DataItemValue
}
NameSpace = tstr
DataItemName = tstr
DataItemValue = any
返回的数据是上面定义的结构的二进制编码 DeviceNameSpaces 。
Java文档android.security.identity.ResultData.getAuthenticatedData()。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。