public interface AppInstallerProgressListener extends SuiteInstallerProgressListener
DOWNLOADING_BODY, DOWNLOADING_DATA, DOWNLOADING_DESCRIPTOR, STORING, VERIFYING
Modifier and Type | Method and Description |
---|---|
boolean |
confirmAuthPath(java.lang.String[] authPath)
Ask the user to confirm the authentication path.
|
boolean |
confirmCertificateImport(Certificate cert)
Called to ask the user to confirm that a certificate the MIDlet suite
is signed with may imported into the internal keystore.
|
boolean |
confirmCurrentScreenSaverUnset(java.lang.String name)
Called then current screen saver is no longer available in new version of
installed test suite
|
boolean |
confirmCurrentScreenSaverUpdate(java.lang.String name)
Called then current screen saver MIDlet is being updated by new version
of screen saver MIDlet
|
boolean |
confirmGrantMaximumPermissions(java.util.Vector groupNames,
boolean hasRisks)
Ask the user during installation or update if he wants to grant maximum
permissions allowed by MIDP specification to the MIDlet suite.
|
boolean |
confirmInstallUnverified()
Called to ask the user to confirm that the MIDlet suite not passing
verification due to unknown CA may be installed as untrusted.
|
boolean |
confirmJarDownload(int totalSize)
Called with the application description so the user can be
asked to confirm the jar download.
|
boolean |
confirmPersistentSuiteInstallation()
Called to aks the user to confirm that the permanent MIDlet suite
installation can proceed, and that the user will not be able to delete
the MIDlet suite after installation.
|
boolean |
confirmRebindingServiceProviders(java.util.Vector<java.lang.String> serviceNames)
Called if the new service providers are installed so the user can be
asked to confirm if he wants to perform rebinding existing applications
with these new service providers.
|
boolean |
confirmRedirect(java.lang.String newLocation)
Called with the URL where the request is attempted to be
redirected so the user can be asked to confirm if he really
wants to install from the new location.
|
boolean |
confirmUnsignedFxInstall()
Called with the current state of the install so the user can be
asked to confirm the unsigned JavaFX application install.
|
boolean |
confirmUpdate(int status)
Called to ask the user about update of already installed
application.
|
java.lang.String[] |
getNetworkAccessCredentials()
Called to ask user for login and password for network access.
|
java.lang.String[] |
getResourceAccessCredentials()
Called to ask user for login and password for network
resource access.
|
java.lang.String |
getRmsDecryptionPassword()
Called to ask user for RMS decryption password.
|
java.lang.String |
getRmsEncryptionPassword()
Called to ask user for RMS encryption password.
|
boolean |
keepRMS()
Called to ask the user to confirm if the RMS data should be
kept for new version of an updated suite.
|
done, updateStatus
java.lang.String[] getNetworkAccessCredentials()
Typically the function is used to ask login/password for proxy authorization. If authorization with the returned credentials fails then this function will be called again. This function may cancel the installation by returning null. NB: For access to .jar and .jad files the same credentials are used. In case the credentials provides for .jad file differ from .jar file this method will be called once again
com.sun.ams.InstallerErrorCodes#CANCELED
error code in the corresponding
SuiteInstallerProgressListener.done(int errorCode)
call).java.lang.String[] getResourceAccessCredentials()
com.sun.ams.InstallerErrorCodes#CANCELED
error code in the corresponding
SuiteInstallerProgressListener.done(int errorCode)
call).boolean confirmUpdate(int status)
status
- is equal to one of the following values depending on installing suite version:
com.sun.ams.InstallerErrorCodes#OLD_VERSION
com.sun.ams.InstallerErrorCodes#ALREADY_INSTALLED
com.sun.ams.InstallerErrorCodes#NEW_VERSION
com.sun.ams.InstallerErrorCodes#CANCELED
error code in the corresponding
SuiteInstallerProgressListener.done(int errorCode)
call)boolean confirmJarDownload(int totalSize)
totalSize
- the expected size of data will be
downloaded. Dynamic components and RMS are included as
well.com.sun.ams.InstallerErrorCodes#CANCELED
error code in the corresponding
SuiteInstallerProgressListener.done(int errorCode)
call)boolean keepRMS()
boolean confirmAuthPath(java.lang.String[] authPath)
authPath
- the authorization path.com.sun.ams.InstallerErrorCodes#CANCELED
error code in the corresponding
SuiteInstallerProgressListener.done(int errorCode)
call)boolean confirmRedirect(java.lang.String newLocation)
newLocation
- new url of the resource to install.com.sun.ams.InstallerErrorCodes#CANCELED
error code in the corresponding
SuiteInstallerProgressListener.done(int errorCode)
call)boolean confirmUnsignedFxInstall()
com.sun.ams.InstallerErrorCodes#CANCELED
error code in the corresponding
SuiteInstallerProgressListener.done(int errorCode)
call)boolean confirmGrantMaximumPermissions(java.util.Vector groupNames, boolean hasRisks)
groupNames
- names of permission groups matching to the permissions
requested by this suite in it's JAD/JARhasRisks
- true if groupNames will contain high risk combinations
in case of the function groups are all set to BLANKETboolean confirmCurrentScreenSaverUpdate(java.lang.String name)
name
- the name of the screen saver MIDletcom.sun.ams.InstallerErrorCodes#CANCELED
error code in the corresponding
SuiteInstallerProgressListener.done(int errorCode)
call)boolean confirmCurrentScreenSaverUnset(java.lang.String name)
name
- the name of the screen saver MIDletcom.sun.ams.InstallerErrorCodes#CANCELED
error code in the corresponding
SuiteInstallerProgressListener.done(int errorCode)
call)boolean confirmPersistentSuiteInstallation()
com.sun.ams.InstallerErrorCodes#CANCELED
error code in the corresponding
SuiteInstallerProgressListener.done(int errorCode)
call)java.lang.String getRmsEncryptionPassword()
java.lang.String getRmsDecryptionPassword()
boolean confirmInstallUnverified()
com.sun.ams.InstallerErrorCodes#CANCELED
error code in the corresponding
SuiteInstallerProgressListener.done(int errorCode)
call)boolean confirmCertificateImport(Certificate cert)
cert
- the certificate to importboolean confirmRebindingServiceProviders(java.util.Vector<java.lang.String> serviceNames)
serviceNames
- names of services for which new service providers
were addedCopyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.