IdentityCredentialStore.GetCredentialByName(String, Int32) Method

Definition

Retrieve a named credential.

[Android.Runtime.Register("getCredentialByName", "(Ljava/lang/String;I)Landroid/security/identity/IdentityCredential;", "GetGetCredentialByName_Ljava_lang_String_IHandler", ApiSince=30)]
public abstract Android.Security.Identity.IdentityCredential? GetCredentialByName (string credentialName, int cipherSuite);
[<Android.Runtime.Register("getCredentialByName", "(Ljava/lang/String;I)Landroid/security/identity/IdentityCredential;", "GetGetCredentialByName_Ljava_lang_String_IHandler", ApiSince=30)>]
abstract member GetCredentialByName : string * int -> Android.Security.Identity.IdentityCredential

Parameters

credentialName
String

the name of the credential to retrieve.

cipherSuite
Int32

the cipher suite to use for communicating with the verifier.

Returns

The named credential, or null if not found.

Attributes

Remarks

Retrieve a named credential.

The cipher suite used to communicate with the remote verifier must also be specified. Currently only a single cipher-suite is supported. Support for other cipher suites may be added in a future version of this API.

Java documentation for android.security.identity.IdentityCredentialStore.getCredentialByName(java.lang.String, int).

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