ResultData.GetAuthenticatedData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a CBOR structure containing the retrieved data.
[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[]
Returns
The bytes of the DeviceNameSpaces
CBOR structure.
- Attributes
Remarks
Returns a CBOR structure containing the retrieved 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 #getMessageAuthenticationCode()
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.ResultData.getAuthenticatedData()
.
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.