Class SigningOptions
- java.lang.Object
-
- com.android.tools.build.apkzlib.sign.SigningOptions
-
public abstract class SigningOptions extends java.lang.ObjectA class that contains data to initialize SigningExtension.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSigningOptions.BuilderAn implementation of builder pattern to create aSigningOptionsobject.static classSigningOptions.Validation
-
Constructor Summary
Constructors Constructor Description SigningOptions()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static SigningOptions.Builderbuilder()abstract com.google.common.collect.ImmutableList<java.security.cert.X509Certificate>getCertificates()A list of theX509Certificates to embed in the signed APKs.abstract com.android.apksig.util.RunnablesExecutorgetExecutor()abstract java.security.PrivateKeygetKey()PrivateKeyused to sign the archive.abstract intgetMinSdkVersion()Minimum SDK version supported.abstract byte[]getSdkDependencyData()SDK dependencies of the APKabstract SigningOptions.ValidationgetValidation()Strategy of package signature validationabstract booleanisV1SigningEnabled()Shows whether signing with JAR Signature Scheme (aka v1 signing) is enabled.abstract booleanisV2SigningEnabled()Shows whether signing with APK Signature Scheme v2 (aka v2 signing) is enabled.
-
-
-
Method Detail
-
builder
public static SigningOptions.Builder builder()
-
getKey
public abstract java.security.PrivateKey getKey()
PrivateKeyused to sign the archive.
-
getCertificates
public abstract com.google.common.collect.ImmutableList<java.security.cert.X509Certificate> getCertificates()
A list of theX509Certificates 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.
-
getValidation
public abstract SigningOptions.Validation getValidation()
Strategy of package signature validation
-
getExecutor
@Nullable public abstract com.android.apksig.util.RunnablesExecutor getExecutor()
-
getSdkDependencyData
@Nullable public abstract byte[] getSdkDependencyData()
SDK dependencies of the APK
-
-