public static class ApkVerifier.Result extends Object
isVerified()
returns true
.Modifier and Type | Class and Description |
---|---|
static class |
ApkVerifier.Result.V1SchemeSignerInfo
Information about a JAR signer associated with the APK's signature.
|
static class |
ApkVerifier.Result.V2SchemeSignerInfo
Information about an APK Signature Scheme v2 signer associated with the APK's signature.
|
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsErrors()
Returns
true if an error was encountered while verifying the APK. |
List<ApkVerifier.IssueWithParams> |
getErrors()
Returns errors encountered while verifying the APK's signatures.
|
List<X509Certificate> |
getSignerCertificates()
Returns the verified signers' certificates, one per signer.
|
List<ApkVerifier.Result.V1SchemeSignerInfo> |
getV1SchemeIgnoredSigners()
Returns information about JAR signers ignored by the APK's signature verification
process.
|
List<ApkVerifier.Result.V1SchemeSignerInfo> |
getV1SchemeSigners()
Returns information about JAR signers associated with the APK's signature.
|
List<ApkVerifier.Result.V2SchemeSignerInfo> |
getV2SchemeSigners()
Returns information about APK Signature Scheme v2 signers associated with the APK's
signature.
|
List<ApkVerifier.IssueWithParams> |
getWarnings()
Returns warnings encountered while verifying the APK's signatures.
|
boolean |
isVerified()
Returns
true if the APK's signatures verified. |
boolean |
isVerifiedUsingV1Scheme()
Returns
true if the APK's JAR signatures verified. |
boolean |
isVerifiedUsingV2Scheme()
Returns
true if the APK's APK Signature Scheme v2 signatures verified. |
public boolean isVerified()
true
if the APK's signatures verified.public boolean isVerifiedUsingV1Scheme()
true
if the APK's JAR signatures verified.public boolean isVerifiedUsingV2Scheme()
true
if the APK's APK Signature Scheme v2 signatures verified.public List<X509Certificate> getSignerCertificates()
public List<ApkVerifier.Result.V1SchemeSignerInfo> getV1SchemeSigners()
getV1SchemeIgnoredSigners()
public List<ApkVerifier.Result.V1SchemeSignerInfo> getV1SchemeIgnoredSigners()
getV1SchemeSigners()
public List<ApkVerifier.Result.V2SchemeSignerInfo> getV2SchemeSigners()
public List<ApkVerifier.IssueWithParams> getErrors()
public List<ApkVerifier.IssueWithParams> getWarnings()
public boolean containsErrors()
true
if an error was encountered while verifying the APK. Any error
prevents the APK from being considered verified.Copyright © 2016. All rights reserved.