FileIntegrityManager.IsAppSourceCertificateTrusted(X509Certificate) Method

Definition

Returns whether the given certificate can be used to prove app's install source.

[Android.Runtime.Register("isAppSourceCertificateTrusted", "(Ljava/security/cert/X509Certificate;)Z", "", ApiSince=30)]
public bool IsAppSourceCertificateTrusted (Java.Security.Cert.X509Certificate certificate);
[<Android.Runtime.Register("isAppSourceCertificateTrusted", "(Ljava/security/cert/X509Certificate;)Z", "", ApiSince=30)>]
member this.IsAppSourceCertificateTrusted : Java.Security.Cert.X509Certificate -> bool

Parameters

certificate
X509Certificate

Returns

whether the certificate is trusted in the system

Attributes

Remarks

Returns whether the given certificate can be used to prove app's install source. Always return false if the feature is not supported.

A store can use this API to decide if a signature file needs to be downloaded. Also, if a store has shipped different certificates before (e.g. with stronger and weaker key), it can also use this API to download the best signature on the running device.

Java documentation for android.security.FileIntegrityManager.isAppSourceCertificateTrusted(java.security.cert.X509Certificate).

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