語言

ResultData.GetAuthenticatedData 方法

定義

回傳包含擷取資料的 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 結構依據以下 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.ResultData.getAuthenticatedData()

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

適用於