KeyChain.CreateManageCredentialsIntent(AppUriAuthenticationPolicy) 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 an Intent
that should be used by an app to request to manage the user's
credentials.
[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
Parameters
- policy
- AppUriAuthenticationPolicy
The authentication policy determines which alias for a private key and certificate pair should be used for authentication.
Returns
- Attributes
Remarks
Returns an Intent
that should be used by an app to request to manage the user's credentials. This is limited to unmanaged devices. The authentication policy must be provided to be able to make this request successfully.
This intent should be started using Activity#startActivityForResult(Intent, int)
to verify whether the request was successful and whether the user accepted or denied the request. If the user successfully receives and accepts the request, the result code will be Activity#RESULT_OK
, otherwise the result code will be Activity#RESULT_CANCELED
.
KeyChain#isCredentialManagementApp(Context)
should be used to determine whether an app is already the credential management app.
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.