Package org.robolectric.shadows
Class ShadowSigningInfo
java.lang.Object
org.robolectric.shadows.ShadowSigningInfo
@Implements(value=android.content.pm.SigningInfo.class, minSdk=28) public class ShadowSigningInfo extends Object
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<SigningInfo>
CREATOR
-
Constructor Summary
Constructors Constructor Description ShadowSigningInfo()
-
Method Summary
Modifier and Type Method 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.void
writeToParcel(Parcel parcel, int flags)
-
Field Details
-
Constructor Details
-
ShadowSigningInfo
public ShadowSigningInfo()
-
-
Method Details
-
setSignatures
Set the current Signatures for this package. If signatures has a size greater than 1,hasMultipleSigners()
will be true andgetSigningCertificateHistory()
will return null. -
setPastSigningCertificates
Sets the history of Signatures for this package. -
hasMultipleSigners
-
hasPastSigningCertificates
-
getSigningCertificateHistory
-
getApkContentsSigners
-
writeToParcel
-