Class ShadowSigningInfo

java.lang.Object
org.robolectric.shadows.ShadowSigningInfo

@Implements(value=android.content.pm.SigningInfo.class, minSdk=28) public class ShadowSigningInfo extends Object
  • Field Details

  • Constructor Details

    • ShadowSigningInfo

      public ShadowSigningInfo()
  • Method Details

    • 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 and getSigningCertificateHistory() 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)