IdentityCredentialStore.DeleteCredentialByName(String) Method

Definition

Delete a named credential.

[Android.Runtime.Register("deleteCredentialByName", "(Ljava/lang/String;)[B", "GetDeleteCredentialByName_Ljava_lang_String_Handler", ApiSince=30)]
public abstract byte[]? DeleteCredentialByName (string credentialName);
[<Android.Runtime.Register("deleteCredentialByName", "(Ljava/lang/String;)[B", "GetDeleteCredentialByName_Ljava_lang_String_Handler", ApiSince=30)>]
abstract member DeleteCredentialByName : string -> byte[]

Parameters

credentialName
String

the name of the credential to delete.

Returns

Byte[]

null if the credential was not found, the COSE_Sign1 data structure above if the credential was found and deleted.

Attributes

Remarks

Delete a named credential.

This method returns a COSE_Sign1 data structure signed by the CredentialKey with payload set to ProofOfDeletion as defined below:

ProofOfDeletion = [
                     "ProofOfDeletion",            ; tstr
                     tstr,                         ; DocType
                     bool                          ; true if this is a test credential, should
                                                   ; always be false.
                 ]

This member is deprecated. Use IdentityCredential#delete(byte[]) instead.

Java documentation for android.security.identity.IdentityCredentialStore.deleteCredentialByName(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