public class SignatureVerification
extends java.lang.Object
| Constructor and Description |
|---|
SignatureVerification() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isSignatureValid(android.content.Context context,
java.lang.String packageName,
java.lang.String certificateSubject,
java.lang.String certificateIssuer,
int publicKeyHashCode)
Check if an app has the correct, matching, signature.
|
public static boolean isSignatureValid(android.content.Context context,
java.lang.String packageName,
java.lang.String certificateSubject,
java.lang.String certificateIssuer,
int publicKeyHashCode)
context - packageName - the package name of the app to verify.certificateSubject - the expected certificate subject of the app.certificateIssuer - the expected certificate issuer of the app.publicKeyHashCode - the hash code of the app's public key.