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.-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
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.The
PackageInfo
must contain the signature information of the application. To obtain it from aContext
object, the following code can be used:PackageInfo packageInfo = context.getPackageManager().getPackageInfo( context.getPackageName(), PackageManager.GET_SIGNING_CERTIFICATES);
- Parameters:
packageInfo
- An instance ofPackageInfo
.- Returns:
- The SHA-256 hash of the signing certificate of the application.
-