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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Signature[]getApkContentsSigners()protected Signature[]getSigningCertificateHistory()protected booleanhasMultipleSigners()protected booleanhasPastSigningCertificates()voidsetPastSigningCertificates(Signature[] pastSigningCertificates)Sets the history of Signatures for this package.voidsetSignatures(Signature[] signatures)Set the current Signatures for this package.voidwriteToParcel(Parcel parcel, int flags)
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<SigningInfo> CREATOR
-
-
Method Detail
-
setSignatures
public void setSignatures(Signature[] signatures)
Set the current Signatures for this package. If signatures has a size greater than 1,hasMultipleSigners()will be true andgetSigningCertificateHistory()will return null.
-
setPastSigningCertificates
public void setPastSigningCertificates(Signature[] pastSigningCertificates)
Sets the history of Signatures for this package.
-
hasMultipleSigners
@Implementation protected boolean hasMultipleSigners()
-
hasPastSigningCertificates
@Implementation protected boolean hasPastSigningCertificates()
-
getSigningCertificateHistory
@Implementation protected Signature[] getSigningCertificateHistory()
-
getApkContentsSigners
@Implementation protected Signature[] getApkContentsSigners()
-
writeToParcel
@Implementation public void writeToParcel(Parcel parcel, int flags)
-
-