語言

CredentialDataResult.GetDeviceNameSpaces 方法

定義

回傳包含擷取的裝置簽名資料的 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 結構依據以下 CDDL 架構:DeviceAuthenticationBytes

DeviceAuthentication = [
                "DeviceAuthentication",
                SessionTranscript,
                DocType,
                DeviceNameSpacesBytes
              ]

              DocType = tstr
              SessionTranscript = any
              DeviceNameSpacesBytes = #6.24(bstr .cbor DeviceNameSpaces)
              DeviceAuthenticationBytes = #6.24(bstr .cbor DeviceAuthentication)

哪裡

DeviceNameSpaces = {
                * NameSpace => DeviceSignedItems
              }

              DeviceSignedItems = {
                + DataItemName => DataItemValue
              }

              NameSpace = tstr
              DataItemName = tstr
              DataItemValue = any

回傳的資料是上述定義的 DeviceNameSpaces 結構的二進位編碼。

Java 文件 android.security.identity.CredentialDataResult.getDeviceNameSpaces()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於