Interface IDesignerLicenseSystem

    • Field Detail

      • CODE_SIGNING_PRINCIPAL

        static final java.lang.String CODE_SIGNING_PRINCIPAL
        The Licensee Code Signing Principal name
        See Also:
        Constant Field Values
    • Method Detail

      • setCodeSigningPrincipal

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

        java.lang.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

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

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

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

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

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

        java.lang.String verifyAppJar​(java.util.jar.JarFile jar,
                                      PropCnr appPropCnr)
                               throws java.io.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:
        java.io.IOException - For I/O errors.
        NotFoundException - If the developer signature cannot be found.
        java.lang.IllegalArgumentException - If the developer signature is in error somehow.