CredentialDataResult.GetDeviceNameSpaces 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回包含检索到的设备签名数据的 CBOR 结构。
[Android.Runtime.Register("getDeviceNameSpaces", "()[B", "GetGetDeviceNameSpacesHandler", ApiSince=33)]
public abstract byte[] GetDeviceNameSpaces();
[<Android.Runtime.Register("getDeviceNameSpaces", "()[B", "GetGetDeviceNameSpacesHandler", ApiSince=33)>]
abstract member GetDeviceNameSpaces : unit -> byte[]
返回
Byte[]
CBOR 结构的字节 DeviceNameSpaces
。
- 属性
注解
返回包含检索到的设备签名数据的 CBOR 结构。
此结构(以及会话脚本)可以通过加密方式进行身份验证,以向读取者证明数据来自受信任的凭据,并 #getDeviceMac()
可用于获取 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
。
适用于 . 的 android.security.identity.CredentialDataResult.getDeviceNameSpaces()
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。