Share via


DevicePolicyManager.UninstallCaCert(ComponentName, Byte[]) Method

Definition

Uninstalls the given certificate from trusted user CAs, if present.

[Android.Runtime.Register("uninstallCaCert", "(Landroid/content/ComponentName;[B)V", "GetUninstallCaCert_Landroid_content_ComponentName_arrayBHandler")]
public virtual void UninstallCaCert (Android.Content.ComponentName? admin, byte[]? certBuffer);
[<Android.Runtime.Register("uninstallCaCert", "(Landroid/content/ComponentName;[B)V", "GetUninstallCaCert_Landroid_content_ComponentName_arrayBHandler")>]
abstract member UninstallCaCert : Android.Content.ComponentName * byte[] -> unit
override this.UninstallCaCert : Android.Content.ComponentName * byte[] -> unit

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with, or null if calling from a delegated certificate installer.

certBuffer
Byte[]

encoded form of the certificate to remove.

Attributes

Remarks

Uninstalls the given certificate from trusted user CAs, if present.

The caller must be a profile or device owner on that user, or a delegate package given the #DELEGATION_CERT_INSTALL scope via #setDelegatedScopes; otherwise a security exception will be thrown.

Java documentation for android.app.admin.DevicePolicyManager.uninstallCaCert(android.content.ComponentName, byte[]).

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