Interface MetaData


public interface MetaData
An interface with static methods only that provides additional information about the Nevis Mobile Authentication SDK.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static Version
    Gives back the version of the Nevis Mobile Authentication SDK.
    static String
    signingCertificateSha256(android.content.pm.PackageInfo packageInfo)
    Gives back the SHA-256 hash of the signing certificate of the application that includes the Nevis Mobile Authentication SDK.
  • Method Details

    • mobileAuthenticationVersion

      static Version mobileAuthenticationVersion()
      Gives back the version of the Nevis Mobile Authentication SDK.
      Returns:
      The version of the Nevis Mobile Authentication SDK.
    • signingCertificateSha256

      static String signingCertificateSha256(android.content.pm.PackageInfo packageInfo)
      Gives back the SHA-256 hash of the signing certificate of the application that includes the Nevis Mobile Authentication SDK.

      The PackageInfo must contain the signature information of the application. To obtain it from a Context object, the following code can be used:

       PackageInfo packageInfo = context.getPackageManager().getPackageInfo(
                                      context.getPackageName(),
                                      PackageManager.GET_SIGNING_CERTIFICATES);
       
      Parameters:
      packageInfo - An instance of PackageInfo.
      Returns:
      The SHA-256 hash of the signing certificate of the application.