Package com.iizix.license
Interface IDesignerLicenseSystem
- All Superinterfaces:
IBasicUserInfoDetailNames
,IGenericLicenseSystem
public interface IDesignerLicenseSystem extends IGenericLicenseSystem
The license system interface.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CODE_SIGNING_PRINCIPAL
The Licensee Code Signing Principal nameFields inherited from interface com.iizix.user.IBasicUserInfoDetailNames
DETAIL_AdditionalEmail, DETAIL_Address, DETAIL_Address_2, DETAIL_Address_3, DETAIL_City, DETAIL_CompanyDivision, DETAIL_CompanyName, DETAIL_Country, DETAIL_CroppedUploadedProfileImage, DETAIL_DBAdministrationUserName, DETAIL_DeveloperGroupID, DETAIL_DeveloperID, DETAIL_Email, DETAIL_EmailVerify, DETAIL_FirstName, DETAIL_FixedPassword, DETAIL_FullName, DETAIL_HomeFax, DETAIL_HomeMobile, DETAIL_HomePhone, DETAIL_JobTitle, DETAIL_LargeProfileImage, DETAIL_LastName, DETAIL_LocalizedFirstName, DETAIL_LocalizedFullName, DETAIL_LocalizedLastName, DETAIL_LocalizedMiddleName, DETAIL_LocalizedTitle, DETAIL_MiddleName, DETAIL_Phone, DETAIL_Phone_2, DETAIL_PinCode, DETAIL_RecoveryAnswer, DETAIL_RecoveryQuestion, DETAIL_StateProvince, DETAIL_ThumbnailProfileImage, DETAIL_Title, DETAIL_UploadedProfileImage, DETAIL_UploadedProfileImageCrop, DETAIL_WorkFax, DETAIL_WorkMobile, DETAIL_WorkPhone, DETAIL_ZipCode, detailsSet, profilePictureDetailsList
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDeveloperAppPropCnrData(PropCnr appPropCnr)
Adds the required information in the AppPropCnr property container for the application.void
addDeveloperManifestAttributes(java.util.jar.Attributes attributes)
Adds the required manifest entries for the development code signing.java.lang.String
getAppDeveloperID()
Gets the Developer ID to use for app licensing.java.lang.String
getDeveloperGroupID()
Gets the developer group ID.java.lang.String
getDeveloperID()
Gets the developer ID.void
setCodeSigningPrincipal(javax.security.auth.x500.X500Principal principal)
Assigns the X500Principal for the iiziApp code signing certificate.void
signJar(java.io.File jarFile)
Signs the iiziApp Jar file.java.lang.String
verifyAppJar(java.util.jar.JarFile jar, PropCnr appPropCnr)
Verifies that an iiziApp Jar is signed with the developer certificate.Methods inherited from interface com.iizix.license.IGenericLicenseSystem
activate, addListener, assignCallback, assignFeedBack, completeRegistration, dispose, extendTrial, getDatabaseAdministratorUser, getDetails, getInstallationID, getLoggedInUser, getProfilePicture, getProfilePicture, getSignature, getTrialDuration, getTrialExtension, getTrialStarted, getValidityPeriod, initialize, isConnected, isTrialMode, login, logout, performOfflineRegistration, preClose, preOpen, removeListener, removeProfilePictures, requestEmailVerification, resetPassword, save, setProfilePicture, setRecoveryEmail, signUp, validate, verifyEmailCode, verifyEmailTaken
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.