@Implements(value=android.content.pm.SigningInfo.class, minSdk=28) public class ShadowSigningInfo extends Object
Constructor and Description |
---|
ShadowSigningInfo() |
Modifier and Type | Method and Description |
---|---|
protected Signature[] |
getApkContentsSigners() |
protected Signature[] |
getSigningCertificateHistory() |
protected boolean |
hasMultipleSigners() |
protected boolean |
hasPastSigningCertificates() |
void |
setPastSigningCertificates(Signature[] pastSigningCertificates)
Sets the history of Signatures for this package.
|
void |
setSignatures(Signature[] signatures)
Set the current Signatures for this package.
|
public void setSignatures(Signature[] signatures)
Set the current Signatures for this package. If signatures has a size greater than 1, hasMultipleSigners()
will be true and getSigningCertificateHistory()
will return null.
public void setPastSigningCertificates(Signature[] pastSigningCertificates)
Sets the history of Signatures for this package.
@Implementation protected boolean hasMultipleSigners()
@Implementation protected boolean hasPastSigningCertificates()
@Implementation protected Signature[] getSigningCertificateHistory()
@Implementation protected Signature[] getApkContentsSigners()