Interface MetaData


public interface MetaData
An interface with static methods only that provides additional information about the Nevis Mobile Authentication SDK and the application it is running on.
  • Method Summary

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

    • mobileAuthenticationVersion

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

      @NonNull static String signingCertificateSha256(@NonNull android.content.Context context)
      Gives back the SHA-256 hash of the signing certificate of the application that includes the Nevis Mobile Authentication SDK.
      Parameters:
      context - the Android context.
      Returns:
      The SHA-256 hash of the signing certificate of the application.
    • applicationFacetId

      @NonNull static String applicationFacetId(@NonNull android.content.Context context)
      Gives back the facet ID of the application. The facet ID of your application has to match the list of allowed facets stored provided by the facet service of the backend.

      Note: if the application is signed with a certificate that has been rotated (updated), this method will return a different value when run in devices with Android API 28 or later, and devices run with Android API 27 or earlier. With API 27 and earlier, the facet ID will correspond to the original signing certificate. If you must support API 27 or earlier and you have rotated the certificate used to sign your application, you must include in your facets both the facet ID calculated using the original certificate and the latest one.

      Parameters:
      context - the Android context.
      Returns:
      The application facet ID.