Language

DevicePolicyManager.RevokeKeyPairFromWifiAuth Method

Definition

Overloads

Name Description
RevokeKeyPairFromWifiAuth(String)

Called by a device or profile owner, or delegated certificate chooser (an app that has been delegated the #DELEGATION_CERT_SELECTION privilege), to deny using a KeyChain key pair for authentication to Wifi networks.

RevokeKeyPairFromWifiAuth(String, KeyChainManagerKeyPairScope)

Called by a device or profile owner, delegated certificate chooser (an app that has been delegated the #DELEGATION_CERT_SELECTION privilege), or permission caller, to deny using a KeyChain key pair of the specified scope for authentication to Wifi networks.

RevokeKeyPairFromWifiAuth(String)

Called by a device or profile owner, or delegated certificate chooser (an app that has been delegated the #DELEGATION_CERT_SELECTION privilege), to deny using a KeyChain key pair for authentication to Wifi networks.

[Android.Runtime.Register("revokeKeyPairFromWifiAuth", "(Ljava/lang/String;)Z", "GetRevokeKeyPairFromWifiAuth_Ljava_lang_String_Handler", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CERTIFICATES")]
public virtual bool RevokeKeyPairFromWifiAuth(string alias);
[<Android.Runtime.Register("revokeKeyPairFromWifiAuth", "(Ljava/lang/String;)Z", "GetRevokeKeyPairFromWifiAuth_Ljava_lang_String_Handler", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CERTIFICATES")>]
abstract member RevokeKeyPairFromWifiAuth : string -> bool
override this.RevokeKeyPairFromWifiAuth : string -> bool

Parameters

alias
String

The alias of the key pair.

Returns

true if the operation was set successfully, false otherwise.

Attributes

Remarks

Called by a device or profile owner, or delegated certificate chooser (an app that has been delegated the #DELEGATION_CERT_SELECTION privilege), to deny using a KeyChain key pair for authentication to Wifi networks. Configured networks using this key won't be able to authenticate.

Starting from android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE throws an IllegalArgumentException if alias doesn't correspond to an existing key.

Java documentation for android.app.admin.DevicePolicyManager.revokeKeyPairFromWifiAuth(java.lang.String).

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

RevokeKeyPairFromWifiAuth(String, KeyChainManagerKeyPairScope)

Called by a device or profile owner, delegated certificate chooser (an app that has been delegated the #DELEGATION_CERT_SELECTION privilege), or permission caller, to deny using a KeyChain key pair of the specified scope for authentication to Wifi networks.

[Android.Runtime.Register("revokeKeyPairFromWifiAuth", "(Ljava/lang/String;I)Z", "GetRevokeKeyPairFromWifiAuth_Ljava_lang_String_IHandler", ApiSince=37)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CERTIFICATES")]
public virtual bool RevokeKeyPairFromWifiAuth(string alias, Android.Security.KeyChainManagerKeyPairScope scope);
[<Android.Runtime.Register("revokeKeyPairFromWifiAuth", "(Ljava/lang/String;I)Z", "GetRevokeKeyPairFromWifiAuth_Ljava_lang_String_IHandler", ApiSince=37)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CERTIFICATES")>]
abstract member RevokeKeyPairFromWifiAuth : string * Android.Security.KeyChainManagerKeyPairScope -> bool
override this.RevokeKeyPairFromWifiAuth : string * Android.Security.KeyChainManagerKeyPairScope -> bool

Parameters

alias
String

The alias of the key pair.

scope
KeyChainManagerKeyPairScope

The scope of the key pair: KeyChainManager#KEYPAIR_SCOPE_USER or KeyChainManager#KEYPAIR_SCOPE_DEVICE.

Returns

true if the operation was set successfully, false otherwise.

Attributes

Applies to