FileIntegrityManager.IsAppSourceCertificateTrusted(X509Certificate) 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.
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.
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.