| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_name
|
|
|
|
|
| |
* netx/net/sourceforge/jnlp/security/SecurityDialog.java: (initDialog)
centerDialog called in init rather than on windowOpened event
|
| |
|
|
|
|
| |
method, added test for this method
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Active screen in this context is the one, where the mouse is presented
or default when no mouse presention detected.
Patch is affecteing only IcedTea-Web custom dialogues.
|
| |
|
|
|
|
|
|
| |
This is a long-planned rework of JarCertVerifier, allowing it to handle
multiple certificates. The algorithms used to verify jars with multiple
certificates vary between JNLPs and Applets.
|
| |
|
| |
|
|
|
|
| |
certificate warning.
|
|
|
|
| |
JNLPClassLoader and CertificateUtils
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2012-04-19 Omair Majid <[email protected]>
* NEWS: Update with fix.
* netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: Remove windowIcon.
(initialize): Do not call loadWindowIcon.
(getWindowIcon): Remove.
(setWindowIcon): Remove.
(loadWindowIcon): Remove.
* netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
(checkTopLevelWindow): Do not set the icon for all top level windows. Use
the default java icon instead.
* netx/net/sourceforge/jnlp/util/ImageResources.java: New file. Provides
access to icons.
* netx/net/sourceforge/jnlp/JNLPSplashScreen.java (JNLPSplashScreen),
* netx/net/sourceforge/jnlp/cache/DefaultDownloadIndicator.java
(getListener),
* netx/net/sourceforge/jnlp/controlpanel/AdvancedProxySettingsDialog.java
(AdvancedProxySettingsDialog),
* netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java (CacheViewer),
* netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java (ControlPanel),
* netx/net/sourceforge/jnlp/security/SecurityDialog.java (SecurityDialog),
* netx/net/sourceforge/jnlp/security/viewer/CertificateViewer.java
(CertificateViewer),
* netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java (show),
* plugin/icedteanp/java/sun/applet/JavaConsole.java (initialize):
Explicitly load icons.
* tests/netx/unit/net/sourceforge/jnlp/util/ImageResourcesTest.java: Test
for ImageResources class.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2011-09-26 Lars Herschke <[email protected]>
* netx/net/sourceforge/jnlp/resources/Messages.properties: Add
CVExportPasswordMessage, CVImportPasswordMessage and
CVPasswordTitle.
* netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java (initialize):
Initialize SSLContext with the user's client certificates.
* netx/net/sourceforge/jnlp/security/CertificateUtils.java
(addPKCS12ToKeyStore, addPKCS12ToKeyStore, dumpPKCS12): New methods.
* netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
(getPasswords): New method.
(ImportButtonListener.actionPerformed): Import client certificates
in PKCS12 format.
(ExportButtonListener.actionPerformed): Export client certificates
in PKCS12 format.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It turns out that TrustManager.checkTrusted() could be called by untrusted
code. In such a case, we should still show a warning to the user, and not
throw a SecurityException instead.
2011-09-23 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/security/SecurityDialogs.java
(showCertWarningDialog): Add a javadoc comment.
* netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java
(askUser): Wrap the call to showCertWarningDialog in a doPrivileged
block.
|
| |
|
| |
|
|
|
|
| |
signed JNLP warning is displayed if appropriate.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch integrates the password authentication pane into the rest of the
security dialog system. The password authentication dialog is now shown using
the secure thread, rather than the thread of the JNLP application.
2011-02-28 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/resources/Messages.properties: Add Password,
Username and SAuthenticationPrompt.
* netx/net/sourceforge/jnlp/security/JNLPAuthenticator.java
(getPasswordAuthentication): Show password prompt using the secure thread.
* netx/net/sourceforge/jnlp/security/PasswordAuthenticationPane.java
(PasswordAuthenticationPane): Initialize variables.
(initialize): For consistency, rename to..
(addComponents): New method. Set the appropriate return value when user
takes an action.
(askUser): Remove.
(main): Remove.
* netx/net/sourceforge/jnlp/security/SecurityDialog.java
(initDialog): Add extra case for AUTHENTICATION dialog type.
(installPanel): Likewise.
* netx/net/sourceforge/jnlp/security/SecurityDialogs.java
(DialogType): Add AUTHENTICATION.
(showAuthenicationPrompt): New method. Shows a password authentication
prompt.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some of the security dialogs that are shown are not warning dialogs.
2011-02-28 Omair Majid <[email protected]>
Rename files
* netx/net/sourceforge/jnlp/security/PasswordAuthenticationDialog.java:
Rename to ...
* netx/net/sourceforge/jnlp/security/PasswordAuthenticationPane.java: New
file.
* netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java: Rename
to...
* netx/net/sourceforge/jnlp/security/SecurityDialog.java: New file.
* netx/net/sourceforge/jnlp/security/SecurityWarning.java: Rename to...
* netx/net/sourceforge/jnlp/security/SecurityDialogs.java: New file.
* netx/net/sourceforge/jnlp/runtime/ApplicationInstance.java,
* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java,
* netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java,
* netx/net/sourceforge/jnlp/security/AccessWarningPane.java,
* netx/net/sourceforge/jnlp/security/AppletWarningPane.java,
* netx/net/sourceforge/jnlp/security/CertWarningPane.java,
* netx/net/sourceforge/jnlp/security/CertsInfoPane.java,
* netx/net/sourceforge/jnlp/security/JNLPAuthenticator.java,
* netx/net/sourceforge/jnlp/security/MoreInfoPane.java,
* netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java,
* netx/net/sourceforge/jnlp/security/SecurityDialogMessage.java,
* netx/net/sourceforge/jnlp/security/SecurityDialogMessageHandler.java,
* netx/net/sourceforge/jnlp/security/SecurityDialogPanel.java,
* netx/net/sourceforge/jnlp/security/SingleCertInfoPane.java,
* netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java,
* netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java,
* netx/net/sourceforge/jnlp/services/ServiceUtil.java,
* netx/net/sourceforge/jnlp/services/XClipboardService.java,
* netx/net/sourceforge/jnlp/services/XExtendedService.java,
* netx/net/sourceforge/jnlp/services/XFileOpenService.java,
* netx/net/sourceforge/jnlp/services/XFileSaveService.java: Update class
names to the new classes.
|
|
|
|
|
| |
Fixes JAR signature handling so that multiply/partially signed jars
are correctly handled.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2011-01-12 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java
(main): Set look and feel. Set config object to use with KeyStores.
* netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java
(initialize): Set config object to use with KeyStores.
* netx/net/sourceforge/jnlp/security/KeyStores.java: Add new member
config.
(setConfiguration): New method. Sets the value of config after security
check.
(getKeyStoreLocation): Use config object instead of querying JNLPRuntime.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2011-01-12 Omair Majid <[email protected]>
* netx/javax/jnlp/UnavailableServiceException.java: Remove unused
imports.
* netx/net/sourceforge/jnlp/AppletDesc.java: Likewise.
* netx/net/sourceforge/jnlp/ApplicationDesc.java: Likewise.
* netx/net/sourceforge/jnlp/ComponentDesc.java: Likewise.
* netx/net/sourceforge/jnlp/DefaultLaunchHandler.java: Likewise.
* netx/net/sourceforge/jnlp/IconDesc.java: Likewise.
* netx/net/sourceforge/jnlp/InformationDesc.java: Likewise.
* netx/net/sourceforge/jnlp/InstallerDesc.java: Likewise.
* netx/net/sourceforge/jnlp/JARDesc.java: Likewise.
* netx/net/sourceforge/jnlp/JREDesc.java: Likewise.
* netx/net/sourceforge/jnlp/Launcher.java: Likewise.
* netx/net/sourceforge/jnlp/PackageDesc.java: Likewise.
* netx/net/sourceforge/jnlp/ParseException.java: Likewise.
* netx/net/sourceforge/jnlp/PluginBridge.java: Likewise.
* netx/net/sourceforge/jnlp/PropertyDesc.java: Likewise.
* netx/net/sourceforge/jnlp/ResourcesDesc.java: Likewise.
* netx/net/sourceforge/jnlp/Version.java: Likewise.
* netx/net/sourceforge/jnlp/cache/CacheEntry.java: Likewise.
* netx/net/sourceforge/jnlp/cache/CacheUtil.java: Likewise.
* netx/net/sourceforge/jnlp/cache/DefaultDownloadIndicator.java:
Likewise.
* netx/net/sourceforge/jnlp/cache/DownloadIndicator.java: Likewise.
* netx/net/sourceforge/jnlp/cache/UpdatePolicy.java: Likewise.
* netx/net/sourceforge/jnlp/controlpanel
/AdvancedProxySettingsDialog.java: Likewise.
* netx/net/sourceforge/jnlp/controlpanel
/AdvancedProxySettingsPane.java: Likewise.
* netx/net/sourceforge/jnlp/controlpanel/NetworkSettingsPanel.java:
Likewise.
* netx/net/sourceforge/jnlp/controlpanel
/TemporaryInternetFilesPanel.java: Likewise.
* netx/net/sourceforge/jnlp/event/ApplicationEvent.java: Likewise.
* netx/net/sourceforge/jnlp/event/DownloadEvent.java: Likewise.
* netx/net/sourceforge/jnlp/runtime/AppThreadGroup.java: Likewise.
* netx/net/sourceforge/jnlp/runtime/AppletAudioClip.java: Likewise.
* netx/net/sourceforge/jnlp/runtime/AppletInstance.java: Likewise.
* netx/net/sourceforge/jnlp/runtime/ApplicationInstance.java:
Likewise.
* netx/net/sourceforge/jnlp/runtime/Boot13.java: Likewise.
* netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: Likewise.
* netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java:
Likewise.
* netx/net/sourceforge/jnlp/security/CertsInfoPane.java: Likewise.
* netx/net/sourceforge/jnlp/security/SecurityUtil.java: Likewise.
* netx/net/sourceforge/jnlp/services/XBasicService.java: Likewise.
* netx/net/sourceforge/jnlp/services/XDownloadService.java: Likewise.
* netx/net/sourceforge/jnlp/services/XExtensionInstallerService.java:
Likewise.
* netx/net/sourceforge/jnlp/services/XFileContents.java: Likewise.
* netx/net/sourceforge/jnlp/services/XFileOpenService.java: Likewise.
* netx/net/sourceforge/jnlp/services/XFileSaveService.java: Likewise.
* netx/net/sourceforge/jnlp/services/XPersistenceService.java:
Likewise.
* netx/net/sourceforge/jnlp/util/PropertiesFile.java: Likewise.
* netx/net/sourceforge/jnlp/util/Reflect.java: Likewise.
|
|
|
|
|
|
|
|
| |
2011-01-04 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/security/KeyStores.java
(getKeyStoreLocation): Fix typo. Return the user-level certificate
store correctly.
|
|
|
|
|
|
|
|
|
|
| |
2010-12-17 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/security/SecurityWarning.java
(shouldPromptUser): Use full privileges when checking configuration. This
value is not security-sensitive and the method is private.
* netx/net/sourceforge/jnlp/services/ServiceUtil.java
(shouldPromptUser): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2010-12-13 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/config/ValueValidator.java: New file.
* netx/net/sourceforge/jnlp/config/BasicValueValidators.java: New
file. Provides methods to get some common validators.
* netx/net/sourceforge/jnlp/config/ConfiguratonValidator.java: New
file. Provides methods to validate a configuration.
* netx/net/sourceforge/jnlp/runtime/DeploymentConfiguration.java:
Moved to config subpackage instead and split off into Setting.java,
DeploymentConfiguration.java and Defaults.java.
* netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java:
Renamed version of original DeploymentConfiguration.
(load): Delegate to load.
(load(boolean)): Load configuration and optionally fix any issues
found.
(checkAndFixConfiguration): New method. Validate all settings and
set them to default values if problems found.
* netx/net/sourceforge/jnlp/config/Setting.java: New file. Based on
ConfigValue which was originally a part of DeploymentConfiguration.
* netx/net/sourceforge/jnlp/config/Defaults.java: New file.
Contains the default configuration settings. Originally from
DeploymentConfiguration.java's loadDefaultProperties.
* netx/net/sourceforge/jnlp/resources/Messages.properties: Add new
messages.
* netx/net/sourceforge/jnlp/Launcher.java: Fix imports.
* netx/net/sourceforge/jnlp/SecurityDesc.java: Likewise.
* netx/net/sourceforge/jnlp/cache/CacheUtil.java: Likewise.
* netx/net/sourceforge/jnlp/controlpanel
/AdvancedProxySettingsDialog.java: Likewise
* netx/net/sourceforge/jnlp/controlpanel
/AdvancedProxySettingsPane.java: Likewise.
* netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java: Likewise
* netx/net/sourceforge/jnlp/controlpanel/DebuggingPanel.java:
Likewise.
* netx/net/sourceforge/jnlp/controlpanel/DesktopShortcutPanel.java:
Likewise.
* netx/net/sourceforge/jnlp/controlpanel/MiddleClickListener.java:
Likewise
* netx/net/sourceforge/jnlp/controlpanel/NetworkSettingsPanel.java:
Likewise.
* netx/net/sourceforge/jnlp/controlpanel/SecuritySettingsPanel.java:
Likewise.
* netx/net/sourceforge/jnlp/controlpanel
/TemporaryInternetFilesPanel.java:Likewise.
* netx/net/sourceforge/jnlp/runtime/ApplicationInstance.java:
Likewise.
* netx/net/sourceforge/jnlp/runtime/JNLPProxySelector.java:
Likewise.
* netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: Likewise.
* netx/net/sourceforge/jnlp/security/KeyStores.java: Likewise.
* netx/net/sourceforge/jnlp/security/SecurityWarning.java: Likewise.
* netx/net/sourceforge/jnlp/services/ServiceUtil.java: Likewise.
* netx/net/sourceforge/jnlp/services/SingleInstanceLock.java:
Likewise.
* netx/net/sourceforge/jnlp/services/XBasicService.java: Likewise
* netx/net/sourceforge/jnlp/services/XPersistenceService.java:
Likewise.
* netx/net/sourceforge/jnlp/util/XDesktopEntry.java: Likewise.
* plugin/icedteanp/java/sun/applet/JavaConsole.java: Likewise.
* plugin/icedteanp/java/sun/applet/PluginMain.java: Likewise.
|
|
|
|
|
|
|
|
|
|
| |
2010-12-08 Omair Majid <[email protected]>
* configure.ac: Add check for sun.misc.HexDumpEncoder
* netx/net/sourceforge/jnlp/security/CertsInfoPane.java: Import
sun.misc.HexDumpEncoder. Remove import of net.sourceforge.jnlp.tools.*
* netx/net/sourceforge/jnlp/tools/CharacterEncoder.java: Remove file.
* netx/net/sourceforge/jnlp/tools/HexDumpEncoder.java: Remove file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2010-12-07 Andrew John Hughes <[email protected]>
* netx/net/sourceforge/jnlp/InformationDesc.java,
(InformationDesc(JNLPFile,Locale)): Correct @param tag.
* netx/net/sourceforge/jnlp/JARDesc.java:
(JARDesc(URL,Version,String,boolean,boolean,boolean,boolean)):
Correct typo and add missing @param tag for cacheable.
* netx/net/sourceforge/jnlp/JREDesc.java:
(JREDesc(Version,URL,String,String,String,List)): Correct typo
in @param tag.
* netx/net/sourceforge/jnlp/Launcher.java:
(Launcher(boolean)): Correct broken @param tag.
* netx/net/sourceforge/jnlp/cache/ResourceTracker.java:
(addDownloadListener(DownloadListener)): Remove broken @param tags.
Add correct one.
(removeDownloadListener(DownloadListener)): Add missing @param tag.
* netx/net/sourceforge/jnlp/security/KeyStores.java:
(getKeyStoreLocation(Level,Type)): Add content to @param and @return tags.
(toTranslatableString(Level,Type)): Likewise.
* netx/net/sourceforge/jnlp/security/PasswordAuthenticationDialog.java:
(askUser(String,int,String,String)): Correct typo in @param tag.
* netx/net/sourceforge/jnlp/security/SecurityDialogPanel.java:
(createSetValueListener(SecurityWarningDialog,int)): Add content to @return tag.
* netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java:
(showCertInfoDialog(CertVerifier,SecurityWarningDialog)): Remove broken
@param tag and add correct ones.
(showSingleCertInfoDialog(X509Certificate,JDialog)): Add content to @param tags.
* netx/net/sourceforge/jnlp/tools/CharacterEncoder.java:
Remove broken @see tags from import from OpenJDK.
* netx/net/sourceforge/jnlp/util/FileUtils.java:
Fix bad whitespace.
(sanitizeFileName(String)): Fix @param tag.
* netx/net/sourceforge/nanoxml/XMLElement.java:
Fix example in class documentation.
* plugin/icedteanp/java/sun/applet/PluginAppletViewer.java,
(waitForAppletInit(NetxPanel)): Fix @param tag.
|
|
|
|
|
| |
Added a new .settings directory which contains Eclipse
preferences for code style.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2010-12-01 Andrew John Hughes <[email protected]>
* netx/net/sourceforge/jnlp/cache/CacheUtil.java:
(getCachedResource(URL,Version,UpdatePolicy)): Use
toURI().toURL() to avoid broken escaping.
* netx/net/sourceforge/jnlp/cache/ResourceTracker.java:
(getCacheURL(URL)): Likewise.
* netx/net/sourceforge/jnlp/runtime/ApplicationInstance.java:
(destroy()): Suppress deprecated warning from use of thread.stop().
Only use when interrupt() has already been tried.
* netx/net/sourceforge/jnlp/runtime/Boot.java:
(getFile()): Use toURI.toURL() to avoid broken escaping.
* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java:
(initializeResources()): Likewise.
* netx/net/sourceforge/jnlp/security/PasswordAuthenticationDialog.java:
(askUser(String,int,String,String)): Use getPassword() to retrieve
a character array directly. Fix overrunning line.
* netx/net/sourceforge/jnlp/tools/JarSigner.java:
Remove unused IdentityScope variable, scope.
* netx/net/sourceforge/nanoxml/XMLElement.java:
(scanWhitespace(StringBuffer)): Don't fallthrough.
* plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:
Fix warnings where std::string is used in printf
rather than char* by invoking c_str on these strings.
* plugin/icedteanp/java/netscape/javascript/JSException.java:
(JSException()): Mark with @Deprecated annotation.
(JSException(String)): Likewise.
(JSException(String,String,int,String,int)): Likewise.
* plugin/icedteanp/java/netscape/javascript/JSObject.java:
(JSObject(String)): Remove redundant cast.
(getWindow(Applet)): Likewise.
* plugin/icedteanp/java/sun/applet/AppletSecurityContextManager.java:
(contexts): Initialise properly with generic typing.
* plugin/icedteanp/java/sun/applet/MethodOverloadResolver.java:
(getMatchingMethod(Object[]): Add missing generic type to Class
instances.
(getMatchingConstructor(Object[])): Likewise.
(getCostAndCastedObject(Object,Class<?>)): Likewise.
(getMatchingMethods(Class<?>,String,int)): Likewise.
(getMatchingConstructors(Class<?>,int)): Likewise.
(getNum(String,Class<?>)): Likewise.
* plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java:
(parseCall(String,ClassLoader,Class<V>)): Use c.cast rather than (V).
(handleMessage(int,String,AccessControlContext,String)): Add
missing generic type to Class instances. Remove redundant casts.
(prepopulateField(int,String)): Add missing generic type to Class instance.
* plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:
(createPanel(PluginStreamHandler,int,long,URL,Hashtable<String,String>)):
Add missing generic types on Hashtable and PrivilegedAction.
(initEventQueue(AppletPanel)): Add missing generic type to PrivilegedAction.
(splitSeparator(String,String)): Use an ArrayList rather than Vector
to avoid locking and use generic types.
(requests): Initialise properly with generic typing.
(applets): Likewise.
(appletStateChanged(AppletEvent)): Use setSize and getPreferredSize.
(handleMessage(int,String)): Remove redundant casts.
(audioClips): Add generic types.
(getAudioClip): Remove redundant cast.
(imageRefs): Add generic types.
(getCachedImageRef(URL)): Remove redundant cast.
(appletPanels): Add generic types.
(getApplets()): Likewise.
(getStream(String)): Mark with @Override.
(getStreamKeys()): Likewise.
(systemParam): Add generic types.
(printTag(PrintStream,Hashtable<String,String>)): Likewise.
Remove redundant casts.
(updateAtts()): Use getSize() and getInsets(). Use Integer.valueOf().
(appletReload()): Add generic types to PrivilegedAction.
(scanIdentifier(int[],Reader)): Use StringBuilder to avoid unnecessary
locking.
(skipComment(int[],Reader)): Likewise.
(scanTag(int[],Reader)): Likewise. Add generic types.
(parse(int,long,String,String,Reader,URL)): Use PrivilegedExceptionAction
to avoid catching and rethrowing the exception manually. Add generic types.
(parse(int,long,String,String,Reader,URL,PrintStream,PluginAppletPanelFactory)):
Add generic types. Remove unnecessary casts. Fix overlong lines.
* plugin/icedteanp/java/sun/applet/PluginMain.java:
(init()): Add generic types. Remove unnecessary cast.
* plugin/icedteanp/java/sun/applet/PluginObjectStore.java:
(objects): Initialise properly with generic typing.
(counts): Likewise.
(identifiers): Likewise.
* plugin/icedteanp/java/sun/applet/PluginProxySelector.java:
(get(Object)): Suppress unchecked warning arising from cast to K.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2010-11-24 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/util/FileUtils.java
(createRestrictedDirectory): New method. Creates a directory with reduced
permissions.
(createRestrictedFile(File,boolean)): New method. Creates a file with reduced
permissions.
(createRestrictedFile(File,boolean,boolean): New method. Creates a file or
a directory with reduced permissions.
* netx/net/sourceforge/jnlp/Launcher.java
(markNetxRunning): Do not grant unnecessary file permissions.
* netx/net/sourceforge/jnlp/runtime/Boot.java: Remove umask from
help message.
* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
(activateNative): Create file with proper permissions.
(getNativeDir): Create directory with proper permissions.
* netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java
(initializeStreams): Create files with proper permissions.
* netx/net/sourceforge/jnlp/security/CertWarningPane.java
(CheckBoxListener.actionPerformed): Likewise.
* netx/net/sourceforge/jnlp/security/KeyStores.java
(createKeyStoreFromFile): Likewise.
* netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
(ImportButtonListener.actionPerformed): Likewise.
(RemoveButtonListener.actionPerformed): Likewise.
* netx/net/sourceforge/jnlp/services/SingleInstanceLock.java
(createWithPort): Likewise.
(getLockFile): Likewise.
* netx/net/sourceforge/jnlp/services/XExtendedService.java
(openFile): Likewise.
* netx/net/sourceforge/jnlp/services/XPersistenceService.java
(create): Likewise.
* netx/net/sourceforge/jnlp/util/XDesktopEntry.java
(installDesktopLauncher): Likewise.
* netx/net/sourceforge/jnlp/resources/Messages.properties: Add
CantCreateFile, RCantCreateDir and RCantRename. Remove BNoBase and
BOUmask.
|