public class SigningOptions
extends java.lang.Object
| Constructor and Description |
|---|
SigningOptions(java.security.PrivateKey key,
com.google.common.collect.ImmutableList<java.security.cert.X509Certificate> certs,
boolean v1SigningEnabled,
boolean v2SigningEnabled,
int minSdkVersion) |
SigningOptions(java.security.PrivateKey key,
java.security.cert.X509Certificate cert,
boolean v1,
boolean v2,
int minSdk) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<java.security.cert.X509Certificate> |
getCertificates() |
java.security.PrivateKey |
getKey() |
int |
getMinSdkVersion() |
boolean |
isV1SigningEnabled() |
boolean |
isV2SigningEnabled() |
public SigningOptions(@Nullable
java.security.PrivateKey key,
@Nullable
java.security.cert.X509Certificate cert,
boolean v1,
boolean v2,
int minSdk)
public SigningOptions(@Nullable
java.security.PrivateKey key,
com.google.common.collect.ImmutableList<java.security.cert.X509Certificate> certs,
boolean v1SigningEnabled,
boolean v2SigningEnabled,
int minSdkVersion)
key - the PrivateKey used to sign the archive, or null.certs - 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.v1SigningEnabled - whether signing with JAR Signature Scheme (aka v1 signing) is enabled.v2SigningEnabled - whether signing with APK Signature Scheme v2 (aka v2 signing) is
enabled.minSdkVersion - minimum SDK version supported@Nullable public java.security.PrivateKey getKey()
public com.google.common.collect.ImmutableList<java.security.cert.X509Certificate> getCertificates()
public boolean isV1SigningEnabled()
public boolean isV2SigningEnabled()
public int getMinSdkVersion()