Share via


DevicePolicyManager.CredentialManagerPolicy Property

Definition

Called by a device owner or profile owner of a managed profile to retrieve the credential manager policy. -or- Called by a device owner or profile owner of a managed profile to set the credential manager policy.

public virtual Android.App.Admin.PackagePolicy? CredentialManagerPolicy { [Android.Runtime.Register("getCredentialManagerPolicy", "()Landroid/app/admin/PackagePolicy;", "GetGetCredentialManagerPolicyHandler", ApiSince=34)] get; [Android.Runtime.Register("setCredentialManagerPolicy", "(Landroid/app/admin/PackagePolicy;)V", "GetSetCredentialManagerPolicy_Landroid_app_admin_PackagePolicy_Handler", ApiSince=34)] set; }
[<get: Android.Runtime.Register("getCredentialManagerPolicy", "()Landroid/app/admin/PackagePolicy;", "GetGetCredentialManagerPolicyHandler", ApiSince=34)>]
[<set: Android.Runtime.Register("setCredentialManagerPolicy", "(Landroid/app/admin/PackagePolicy;)V", "GetSetCredentialManagerPolicy_Landroid_app_admin_PackagePolicy_Handler", ApiSince=34)>]
member this.CredentialManagerPolicy : Android.App.Admin.PackagePolicy with get, set

Property Value

the current credential manager policy if null then this policy has not been configured.

Attributes

Remarks

Property getter documentation:

Called by a device owner or profile owner of a managed profile to retrieve the credential manager policy.

Java documentation for android.app.admin.DevicePolicyManager.getCredentialManagerPolicy().

Property setter documentation:

Called by a device owner or profile owner of a managed profile to set the credential manager policy.

Affects APIs exposed by android.credentials.CredentialManager.

A PackagePolicy#PACKAGE_POLICY_ALLOWLIST policy type will limit the credential providers that the user can use to the list of packages in the policy.

A PackagePolicy#PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM policy type allows access from the OEM default credential providers and the allowlist of credential providers.

A PackagePolicy#PACKAGE_POLICY_BLOCKLIST policy type will block the credential providers listed in the policy from being used by the user.

Java documentation for android.app.admin.DevicePolicyManager.setCredentialManagerPolicy(android.app.admin.PackagePolicy).

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