Mercurial > hg > release > icedtea-web-1.5
changeset 940:674128ef4394
SecurityDelegate addPermission
* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (SecurityDelegate
addPermission, addPermissions) new methods. (SecurityDelegateImpl addPermission,
addPermissions) implement previous.
author | Andrew Azores <aazores@redhat.com> |
---|---|
date | Thu, 20 Mar 2014 15:20:58 -0400 |
parents | cea32875903d |
children | fb2309dfa598 |
files | ChangeLog netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java |
diffstat | 2 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Mar 20 16:55:12 2014 +0100 +++ b/ChangeLog Thu Mar 20 15:20:58 2014 -0400 @@ -1,3 +1,9 @@ +2014-03-20 Andrew Azores <aazores@redhat.com> + + * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (SecurityDelegate + addPermission, addPermissions) new methods. (SecurityDelegateImpl addPermission, + addPermissions) implement previous. + 2014-03-20 Jiri Vanek <jvanek@redhat.com> Clear cache function made more visible.
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Thu Mar 20 16:55:12 2014 +0100 +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Thu Mar 20 15:20:58 2014 -0400 @@ -2270,6 +2270,12 @@ public void setRunInSandbox() throws LaunchException; public boolean getRunInSandbox(); + + public void addPermission(final Permission perm); + + public void addPermissions(final PermissionCollection perms); + + public void addPermissions(final Collection<Permission> perms); } /** @@ -2406,6 +2412,23 @@ return this.promptedForSandbox; } + public void addPermission(final Permission perm) { + classLoader.addPermission(perm); + } + + public void addPermissions(final PermissionCollection perms) { + Enumeration<Permission> e = perms.elements(); + while (e.hasMoreElements()) { + addPermission(e.nextElement()); + } + } + + public void addPermissions(final Collection<Permission> perms) { + for (final Permission perm : perms) { + addPermission(perm); + } + } + }