<p>Is it possible to sign only part of an applet?  Ie, have an applet that pops up no security warnings about being signed, but if some particular function is used (that requires privileges) then use the signed jar?</p>

<p>From what I can tell, some (perhaps most) browsers will pop up the warning for a signed applet even if you don't request privileges at all at execution time.  I'd rather avoid that if possible.</p>

[{'answer_id': 78036, 'author': 'Jason Dagit', 'author_id': 5113, 'author_profile': 'https://Stackoverflow.com/users/5113', 'pm_score': -1, 'selected': False, 'text': '<p>I\'ve been given the impression that Sun wants to discourage the creation of Applets and encourage the usage of Java Web Start.  I think this issue of signing applets is part of the problem.  See this documentation from Sun: <a href="http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html" rel="nofollow noreferrer">Java Web start FAQ</a>.</p>\n\n<p>I haven\'t tried this, but could you segment the features that need signing into separate jars that only require permission checks when the user needs the functionality in those jars?</p>\n'}, {'answer_id': 78224, 'author': 'James A. N. Stauffer', 'author_id': 6770, 'author_profile': 'https://Stackoverflow.com/users/6770', 'pm_score': 2, 'selected': True, 'text': '<p>Try splitting your code into an unsigned jar and a signed jar.</p>\n'}, {'answer_id': 93350, 'author': 'Javaxpert', 'author_id': 15241, 'author_profile': 'https://Stackoverflow.com/users/15241', 'pm_score': 1, 'selected': False, 'text': "<p>In theory you can (signed + unsigned jar), but in practice it will result that your code will be handled as unsigned. The access decision should be made from the thread, not the immediate caller.  If the thread contains in the stack a call made from an object from unsigned code, the whole call should be treated as unsigned.  If you work around this you've found a bug.</p>\n\n<p>In other words... <strong>No</strong>.</p>\n\n<p>If I'm not being to curious, may I inquire why do you want to partially sign your code?</p>\n"}]
['https://Stackoverflow.com/questions/77686', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1432/']