Package ch.nevis.mobile.sdk.api.metadata
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 MethodsModifier and TypeMethodDescriptionstatic StringapplicationFacetId(android.content.Context context) Gives back the facet ID of the application.static VersionGives back the version of the Nevis Mobile Authentication SDK.static StringsigningCertificateSha256(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
Gives back the version of the Nevis Mobile Authentication SDK.- Returns:
- The version of the Nevis Mobile Authentication SDK.
-
signingCertificateSha256
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
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.
-