Sdílet prostřednictvím


KeyStore.IsCertificateEntry(String) Method

Definition

Returns true if the entry identified by the given alias was created by a call to setCertificateEntry, or created by a call to setEntry with a TrustedCertificateEntry.

[Android.Runtime.Register("isCertificateEntry", "(Ljava/lang/String;)Z", "")]
public bool IsCertificateEntry (string? alias);
[<Android.Runtime.Register("isCertificateEntry", "(Ljava/lang/String;)Z", "")>]
member this.IsCertificateEntry : string -> bool

Parameters

alias
String

the alias for the keystore entry to be checked

Returns

true if the entry identified by the given alias contains a trusted certificate, false otherwise.

Attributes

Exceptions

if this KeyStore is not initialized.

Remarks

Returns true if the entry identified by the given alias was created by a call to setCertificateEntry, or created by a call to setEntry with a TrustedCertificateEntry.

Java documentation for java.security.KeyStore.isCertificateEntry(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