diff options
author | Adam Domurad <[email protected]> | 2013-04-11 10:02:11 -0400 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2013-04-11 10:02:11 -0400 |
commit | 038866be9293d5194b04af3c98c71e5e66712cf2 (patch) | |
tree | ccc11c87c0bc7dbc0b9a31e39d8377d446e33bb5 /netx/net/sourceforge/jnlp/security/SecurityDialogs.java | |
parent | 10d6ef89fcd4c6f31856df24a3b9e2cd1d637023 (diff) |
Allow for remembered unsigned trust based on codebase
Diffstat (limited to 'netx/net/sourceforge/jnlp/security/SecurityDialogs.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/security/SecurityDialogs.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/netx/net/sourceforge/jnlp/security/SecurityDialogs.java b/netx/net/sourceforge/jnlp/security/SecurityDialogs.java index a1af82e..a2dc6eb 100644 --- a/netx/net/sourceforge/jnlp/security/SecurityDialogs.java +++ b/netx/net/sourceforge/jnlp/security/SecurityDialogs.java @@ -37,6 +37,7 @@ exception statement from your version. package net.sourceforge.jnlp.security; +import net.sourceforge.jnlp.security.UnsignedAppletTrustWarningPanel.UnsignedWarningAction; import net.sourceforge.jnlp.security.appletextendedsecurity.ExecuteUnsignedApplet; import java.awt.Dialog.ModalityType; @@ -182,10 +183,10 @@ public class SecurityDialogs { * * @return true if permission was granted by the user, false otherwise. */ - public static ExecuteUnsignedApplet showUnsignedWarningDialog(JNLPFile file) { + public static UnsignedWarningAction showUnsignedWarningDialog(JNLPFile file) { if (!shouldPromptUser()) { - return ExecuteUnsignedApplet.NO; + return new UnsignedWarningAction(ExecuteUnsignedApplet.NO, false); } final SecurityDialogMessage message = new SecurityDialogMessage(); @@ -193,7 +194,7 @@ public class SecurityDialogs { message.accessType = AccessType.UNSIGNED; message.file = file; - return (ExecuteUnsignedApplet)getUserResponse(message); + return (UnsignedWarningAction)getUserResponse(message); } /** |