Interface IDesignerLicenseSystem

All Superinterfaces:
IBasicUserInfoDetailNames, IGenericLicenseSystem

public interface IDesignerLicenseSystem extends IGenericLicenseSystem
The license system interface.
Author:
Christopher Mindus
  • Field Details

    • CODE_SIGNING_PRINCIPAL

      static final String CODE_SIGNING_PRINCIPAL
      The Licensee Code Signing Principal name
      See Also:
  • Method Details

    • setCodeSigningPrincipal

      void setCodeSigningPrincipal(X500Principal principal)
      Assigns the X500Principal for the iiziApp code signing certificate.
      Parameters:
      principal - The principal, or null to remove it.
    • getAppDeveloperID

      String getAppDeveloperID()
      Gets the Developer ID to use for app licensing.
      Returns:
      The Developer Group ID or the Developer ID, whichever comes first as non-null.
    • getDeveloperGroupID

      String getDeveloperGroupID()
      Gets the developer group ID. A group can be a Company, or other, rather than the developer ID.
      Returns:
      The developer group ID, null if not yet registered, empty string for individual developer.
    • getDeveloperID

      String getDeveloperID()
      Gets the developer ID.
      Returns:
      The developer ID, null if not yet registered.
    • addDeveloperAppPropCnrData

      void addDeveloperAppPropCnrData(PropCnr appPropCnr) throws IOException
      Adds the required information in the AppPropCnr property container for the application.
      Parameters:
      appPropCnr - The application property container.
      Throws:
      IOException - For failures in the AppPropCnr structure.
    • addDeveloperManifestAttributes

      void addDeveloperManifestAttributes(Attributes attributes) throws IOException
      Adds the required manifest entries for the development code signing.
      Parameters:
      attributes - The main attributes of the Jar file being created.
      Throws:
      IOException - If there are any problems with the developer configuration.
    • signJar

      void signJar(File jarFile) throws IOException
      Signs the iiziApp Jar file.
      Parameters:
      jarFile - The Jar file to sign.
      Throws:
      IOException - For I/O errors.
    • verifyAppJar

      String verifyAppJar(JarFile jar, PropCnr appPropCnr) throws IOException
      Verifies that an iiziApp Jar is signed with the developer certificate.
      Parameters:
      jar - The Jar file.
      appPropCnr - The application property container.
      Returns:
      An error message, or null for success.
      Throws:
      IOException - For I/O errors.
      NotFoundException - If the developer signature cannot be found.
      IllegalArgumentException - If the developer signature is in error somehow.