CredentialDataResult.GetDeviceSignature 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個基於 DeviceAuthenticationBytes 中指定的 #getDeviceNameSpaces()CBOR 的簽章,以向讀取器證明資料來自受信任的憑證。
[Android.Runtime.Register("getDeviceSignature", "()[B", "GetGetDeviceSignatureHandler", ApiSince=34)]
public virtual byte[]? GetDeviceSignature();
[<Android.Runtime.Register("getDeviceSignature", "()[B", "GetGetDeviceSignatureHandler", ApiSince=34)>]
abstract member GetDeviceSignature : unit -> byte[]
override this.GetDeviceSignature : unit -> byte[]
傳回
如上所述的COSE_Sign1結構,或 null 若未符合上述條件。
- 屬性
備註
回傳一個基於 DeviceAuthenticationBytes 中指定的 #getDeviceNameSpaces()CBOR 的簽章,以向讀取器證明資料來自受信任的憑證。
簽章是使用認證私鑰完成的。 有關此操作的詳細內容,請參閱 ISO/IEC 18013-5:2021 第 9.1.3.4 節。
如果會話轉錄或讀取臨時金鑰未設定在取得此資料的 , PresentationSession 則不會產生簽章,此方法將回傳 null。
此功能僅在功能版本202301或更新版本中實作。 若未實作,呼叫將失敗。UnsupportedOperationException 請參閱 android.content.pm.PackageManager#FEATURE_IDENTITY_CREDENTIAL_HARDWARE 已知的功能版本。
Java 文件 android.security.identity.CredentialDataResult.getDeviceSignature()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。