Udostępnij za pośrednictwem


CredentialDataResult.GetDeviceNameSpaces Method

Definition

Returns a CBOR structure containing the retrieved device-signed data.

[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[]

Returns

Byte[]

The bytes of the DeviceNameSpaces CBOR structure.

Attributes

Remarks

Returns a CBOR structure containing the retrieved device-signed data.

This structure - along with the session transcript - may be cryptographically authenticated to prove to the reader that the data is from a trusted credential and #getDeviceMac() can be used to get a MAC.

The CBOR structure which is cryptographically authenticated is the DeviceAuthenticationBytes structure according to the following CDDL schema:

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

The returned data is the binary encoding of the DeviceNameSpaces structure as defined above.

Java documentation for android.security.identity.CredentialDataResult.getDeviceNameSpaces().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to