IdentityCredentialStore.DeleteCredentialByName(String) 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.
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
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.
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.