类 AppBundleSigner

java.lang.Object
io.github.amsonix.molt.internal.reschiper.bundle.AppBundleSigner

public class AppBundleSigner extends Object
Utility class for signing an Android App Bundle (AAB) using a JarSigner.
  • 构造器详细资料

    • AppBundleSigner

      public AppBundleSigner(Path bundleFile, JarSigner.Signature signature)
      Constructs an AppBundleSigner with the provided AAB file path and signature.
      参数:
      bundleFile - The path to the Android App Bundle (AAB) file to sign.
      signature - The signature to use for signing the AAB.
    • AppBundleSigner

      public AppBundleSigner(Path bundleFile)
      Constructs an AppBundleSigner with the provided AAB file path.
      参数:
      bundleFile - The path to the Android App Bundle (AAB) file to sign.
  • 方法详细资料

    • setBundleSignature

      public void setBundleSignature(JarSigner.Signature bundleSignature)
      Sets the signature to use for signing the AAB.
      参数:
      bundleSignature - The signature to use for signing the AAB.
    • execute

      public void execute() throws IOException, InterruptedException
      Executes the signing of the Android App Bundle (AAB) using the specified JarSigner signature.
      抛出:
      IOException - If an I/O error occurs during the signing process.
      InterruptedException - If the signing process is interrupted.