Class SigningOptions


  • public abstract class SigningOptions
    extends java.lang.Object
    A class that contains data to initialize SigningExtension.
    • Constructor Detail

      • SigningOptions

        public SigningOptions()
    • Method Detail

      • getKey

        public abstract java.security.PrivateKey getKey()
        PrivateKey used to sign the archive.
      • getCertificates

        public abstract com.google.common.collect.ImmutableList<java.security.cert.X509Certificate> getCertificates()
        A list of the X509Certificates to embed in the signed APKs. The first element of the list must be the certificate associated with the private key.
      • isV1SigningEnabled

        public abstract boolean isV1SigningEnabled()
        Shows whether signing with JAR Signature Scheme (aka v1 signing) is enabled.
      • isV2SigningEnabled

        public abstract boolean isV2SigningEnabled()
        Shows whether signing with APK Signature Scheme v2 (aka v2 signing) is enabled.
      • getMinSdkVersion

        public abstract int getMinSdkVersion()
        Minimum SDK version supported.
      • getExecutor

        @Nullable
        public abstract com.android.apksig.util.RunnablesExecutor getExecutor()
      • getSdkDependencyData

        @Nullable
        public abstract byte[] getSdkDependencyData()
        SDK dependencies of the APK