KeyChain.CreateManageCredentialsIntent(AppUriAuthenticationPolicy) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳 Intent 應該是應用程式用來請求管理使用者憑證的。
[Android.Runtime.Register("createManageCredentialsIntent", "(Landroid/security/AppUriAuthenticationPolicy;)Landroid/content/Intent;", "", ApiSince=31)]
public static Android.Content.Intent CreateManageCredentialsIntent(Android.Security.AppUriAuthenticationPolicy policy);
[<Android.Runtime.Register("createManageCredentialsIntent", "(Landroid/security/AppUriAuthenticationPolicy;)Landroid/content/Intent;", "", ApiSince=31)>]
static member CreateManageCredentialsIntent : Android.Security.AppUriAuthenticationPolicy -> Android.Content.Intent
參數
- policy
- AppUriAuthenticationPolicy
認證政策決定私鑰與憑證配對應使用哪種別名進行驗證。
傳回
- 屬性
備註
回傳 Intent 應該是應用程式用來請求管理使用者憑證的。 這僅限於非受管理裝置。 必須提供認證政策,才能成功提出此請求。
此意圖應開始 Activity#startActivityForResult(Intent, int) 驗證請求是否成功,以及使用者是否接受或拒絕。 若使用者成功接收並接受請求,結果代碼將為 Activity#RESULT_OK,否則結果代碼為 Activity#RESULT_CANCELED。
KeyChain#isCredentialManagementApp(Context) 應該用來判斷一個應用程式是否已經是憑證管理應用程式。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。