Class CertificateHelper


  • public class CertificateHelper
    extends java.lang.Object
    Helper class for obtaining information about an Android app's signing certificate.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getSigningCertificateSha1Fingerprint​(Context context)
      Obtains the SHA-1 fingerprint of the certificate used to sign the app.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CertificateHelper

        public CertificateHelper()
    • Method Detail

      • getSigningCertificateSha1Fingerprint

        @Nullable
        public static java.lang.String getSigningCertificateSha1Fingerprint​(@NotNull
                                                                            Context context)
        Obtains the SHA-1 fingerprint of the certificate used to sign the app.
        Parameters:
        context - a Context
        Returns:
        the SHA-1 fingerprint if obtainable, otherwise, null