What are EXACT STEPS for giving an applet unrestricted access?

Hello all,
My company has developed a library for Java applications, and it's packaged in a jar file. We recently needed to create an applet to put on our website to demo the library's functionality. However, because it wasn't designed to be used in an applet, we get all kinds of security violations when running it in a web browser (reading system properties, reading Preferences API, reading local files, etc.)
What we want is a really simple way for our potential customers to run this applet and give it permission to do whatever. We're a trustworthy company so they will be willing to accept an applet signed by us. However, they will not be willing (or even know how) to modify security policy files on their local machine.
Can an applet signed by us get these permissions without the end user having to modify their policy file? I tried signing the applet using the techniques from
http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html
but the link may be out-of-date and it didn't work. Frankly I think Sun has failed miserably with regards to applet security - they made it incredibly difficult to do correctly and they provide no documentation on how to do it. Basically every topic in this forum is asking the same question - how do you easily give an applet permission to do what it needs to do?
So here's the question: once and for all, can anyone provide a list of the exact steps necessary to give an applet permissions?

Hello.
"1. Create your code for the applet as usual.
It is not necessary to set any permissions or use security managers in
the code.
2. Install JDK 1.3
Path for use of the following commands: [jdk 1.3 path]\bin\
(commands are keytool, jar, jarsigner)
Password for the keystore is *any* password. Only Sun knows why...
perhaps ;-)
3. Generate key: keytool -genkey -keyalg rsa -alias tstkey
Enter keystore password: *******
What is your first and last name?
[Unknown]: Your Name
What is the name of your organizational unit?
[Unknown]: YourUnit
What is the name of your organization?
[Unknown]: YourOrg
What is the name of your City or Locality?
[Unknown]: YourCity
What is the name of your State or Province?
[Unknown]: YS
What is the two-letter country code for this unit?
[Unknown]: US
Is CN=Your Name, OU=YourUnit, O=YourOrg, L=YourCity, ST=YS, C=US
correct?
[no]: yes
(wait...)
Enter key password for tstkey
(RETURN if same as keystore password):
(press [enter])
4. Export key: keytool -export -alias tstkey -file tstcert.crt
Enter keystore password: *******
Certificate stored in file tstcert.crt
5. Create JAR: jar cvf tst.jar tst.class
Add all classes used in your project by typing the classnames in the
same line.
added manifest
adding: tst.class(in = 849) (out= 536)(deflated 36%)
6. Verify JAR: jar tvf tst.jar
Thu Jul 27 12:58:28 GMT+02:00 2000 META-INF/
68 Thu Jul 27 12:58:28 GMT+02:00 2000 META-INF/MANIFEST.MF
849 Thu Jul 27 12:49:04 GMT+02:00 2000 tst.class
7. Sign JAR: jarsigner tst.jar tstkey
Enter Passphrase for keystore: *******
8. Verifiy Signing: jarsigner -verify -verbose -certs tst.jar
130 Thu Jul 27 13:04:12 GMT+02:00 2000 META-INF/MANIFEST.MF
183 Thu Jul 27 13:04:12 GMT+02:00 2000 META-INF/TSTKEY.SF
920 Thu Jul 27 13:04:12 GMT+02:00 2000 META-INF/TSTKEY.RSA
Thu Jul 27 12:58:28 GMT+02:00 2000 META-INF/
smk 849 Thu Jul 27 12:49:04 GMT+02:00 2000 tst.class
X.509, CN=Your Name, OU=YourUnit, O=YourOrg, L=YourCity, ST=YS, C=US
(tstkey)
s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope
jar verified.
9. Create HTML-File for use of the Applet by the Sun Plugin 1.3
(recommended to use HTML Converter Version 1.3)
10. Place a link to the .crt file (created in step 4) in the HTML-File.
This .crt file has to be opened by the browser and has to be set to
trusted,
as the root CA for testing is not known to the browser. For use with
"real" certificates, this step should not be necessary."
Only one my comment. You should sign all jars that your applet requires.

Similar Messages

  • What are the steps for loading master data

    Hello
    what are the steps for loading master data? i want to learn about loading all master data and the steps to choose the best way to load the data.
    if anyone has documents please send me the documents i will be really greatful
    [email protected] thanks everyone
    Evion

    Hi Heng,
    Download the data into a CSV file.
    Write a program using GUI_UPLOAD to upload the CSV file and insert records.Chk the below link for example
    http://www.sap-img.com/abap/vendor-master-upload-program.htm
    Reward Points for the useful solutions.
    Regards,
    Harini.S

  • Hi, my name is Laith I'm from Iraq I just want to know what are the steps for buying a new iphone 5 from apple store and how to ship it to Iraq ???? and I would be grateful for you

    hi, my name is Laith I'm from Iraq I just want to know what are the steps for buying a new iphone 5 from apple store and how to ship it to Iraq ???? and I would be grateful for you

    Legality aside (I'm not a lawyer and have no opinion on the matter) in order to make a purchase of an iPhone 5 you would need to travel to a country where they are for sale and purchase it there. Be sure to get one that is officially unlocked or you would not be able to use it with your cell carrier. Be sure that your carrier supports use of the iPhone before you buy. Also note that the warranty of the iPhone is only valid in the country of purchase.
    Appe does not ship outside of the countries where it sells the phones.

  • What are the steps for using the backup files to reload data to my blackberry curve (8310, i think)?

    What are the steps for using the backup files to reload data to my blackberry curve (8310, i think)?

    Connect BB to PC. On 'Desktop Manager'>Backup & Restore tab>Click Restore. Double click .ipd file (backup file created from Desktop Manager).

  • What are the steps for integration FI to PP

    hai
    what are the steps for integration with FI to PP
    Thanks & regards,
    PG BABU

    Hi,
    Integration is with CO and PP
    In CO, Cost Centers are Created using T.code KS01.
    In CO, Activity Types are created using T.Code KL01.
    Both should be combined Using T.code KP26.
    Cost Centers are assigned to Work Centers using T.Code CR02.
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

  • What  are the steps for merging of database files ?

    hi
    i have 23 datafiles in a tablespace .i want to merge these 23 datafiles into 4 to 5 datafiles.What are the steps for merging of database files
    Edited by: mithun on Oct 22, 2011 11:29 PM

    >
    i have 23 datafiles in a tablespace .i want to merge these 23 datafiles into no of
    small no of datafiles.What are the steps for merging of database filesYou didn't mention your Oracle version.
    See here for creating tablespaces http://www.adp-gmbh.ch/ora/sql/create_tablespace.html.
    You can specify as many (or as few) datafiles as you like.
    Then create tables in your new tablespace x_old_table_name(s) - you can Google this.
    Then select the data from old_table_name(s) into x_old_table_name(s).
    Drop old_table_name(s)
    Rename x_old_table_name(s) old_table_name(s).
    There may be a better way.
    Paul...

  • What are the steps for downloading photoshop?

    I signed up and paid first month for the complete package.  I keep trying to download without any success.  What are the steps?

    Thanks Bruce.   I shall set it to music, and forever more post it with the appropriate tune resonating in my head-do-wup-wup-wup.
    You need to log into creative.adobe.com
      `<<QWEEAcppoiYTTRRRVSVASTWG 
    Click Download Center
    `<<lihgafdkm[‘whi[Jbagdosf
    Scroll down the page to Creative Cloud
      `<<UOHDGPWHGQ[UPHGG  ADSTFIHB 
    Click on creative cloud to download it, then install it.
    `<< uitfspiuuhbGVTfaifdiho[qf

  • What are the steps for a clean reinstall of the os?

    I have updated to mavericks from mountain lion and well to say the least, my 2011 macbook pro has been running slower than what it should be. I have been reading forums that other people are having problems as well and was able to fix some of them by doing uninstalling their os and reinstalling it for a clean install. So my question is what do i need to do before i reinstall the os, will my files be safe? Also what are the steps i need to take to reinstall the os?
    Im honestly thinking about just going back mountain lion, this update adds nothing for me than it being free and the extra batery life, which i havent noticed, but when it takes forever to open up itunes or switch tabs in safari or open up word, theres a problem. Anyways can anybody help me out here?

    A clean install means you'll have to re-install all third party apps from scratch and migrate nothing. Your files will not survive a clean install, so be sure you have a good backup to copy them back after.
    Are you sure the issue is with the system and not just something in your user account? Have you tried logging into your Guest account and see how it works, or try starting in Safe Mode and see if the problem still occurs?
    Restart holding the "shift" key.
    (Expect it to take longer to start this way because it runs a directory check first.)

  • What are the steps for moving FPGA to new target

    I thought I asked this question once but can't find it. So if this is a repeat I apologize.
    I have a PXI-7831r project that works. I need to cake a copy that runs on a PXI-7851r on another machine.
    What are the steps that I need to take and potential pitfalls.
    Thanks you in advance
    Judd
    Judd

    I hope this page helps.
    http://www.ni.com/white-paper/5075/en
    TailOfGon
    Certified LabVIEW Architect 2013

  • What are the steps for extending a OAF page (11iApplication Salary screen)

    I couldn't proceed further beyond step 3 after following the instruction in OAF Developer's Guide, Chapter 9, Common BC4J Extension, page 890.
    In Step 3, it says...
    Create a new view object that extends the parent VO (you create the extended VO just as you would any other view object with the following difference: specify the name of the parent VO in the Extends View Object field in the first page of the wizard). Be sure to follow the naming standard described above.
    Note that the parent VO package must be included in your project before you can extend the parent VO.
    The issue I have now is, during the creation of a new VO, I need to extend the parent VO. However, I do not see any parentVO in the Parent window for me to select.
    I want to know what are the initial steps or normal steps you usually do when extending a OAF page, so I know where I missed.
    Thanks.
    **Purpose:
    To make the ViewAttribute:ProposalReason as a required field when entering a new salary record
    **Some information about the Salary screen:
    Page:
    /oracle/apps/per/saladmin/webui/NewSalaryPG
    Page Denefination:
    header: New Salary      CO: NewProposalCO
    messageComponentLayout: (NewProposalRN)
    messageRadioGroup: "Reason for Change"
    VO:PerPayProposalsVO1 ViewAttribute:ProposalReason
    AM:oracle.apps.per.saladmin.server.SaladminAM
    VO:oracle.apps.per.saladmin.server.PerPayProposalsVO
    EO:oracle.apps.per.schema.server.PerPayProposalsEO
    CO:oracle.apps.per.saladmin.webui.NewProposalCO
    AM: Version:
    SaladminAMImpl.java 115.80
    VO Version:
    PerPayProposalsVOImpl.java 115.16
    PerPayProposalsVORowImpl.java 115.8
    EO Version:
    PerPayProposalsEOImpl.java
    Message was edited by:
    user562389

    Hi,
    which version of JDeveloper is this ? 11 ?
    Frank

  • What are the steps for using Bobj with ECC

    Hi,
    I have the ECC 6 with EHP4 system, now i want to use BusinessObjects for reporting purpose. I dont have the BI installed, What are the pre-requisit for installaing and using Bobj with web intelegence and crystal report. Dose BI is must for bobj to work? Please explain in steps what are the things i have to do.
    Thanks
    Rajib Imran

    It looks like you are new to BOBJ. BI is the service name and BOBJ is the product name in SAP.
    Since you have not mentioned your version of BOBJ, I assume you are in the latest version...
    To date, there is no direct connectivity available between ECC and BI 4.0 (current release of BOBJ).
    You may need to use one of some of the following ways:
    1. Using Plug and play Rapid marts (using Data Services)
    2. Build your own custom marts (using Data Services)
    3. Building SAP BW and using SAP integration kit
    Having said, there is a plan for direct connectivity between SAP ECC and BI 4.0 in the upcoming enhancement to BI 4.0.
    Please refer the link below for more details:
    /people/tammy.powlas3/blog/2011/12/04/sap-integration-with-businessobjects-bi-40-feature-pack-3-asug-webcast-summary
    Hope this sets up your thought process
    --Vino

  • What are the Steps for COPYAPP utility in planning

    DO i need to create a DSN for the target application first? The error says "Unable to retrieve the application entry for the target app.
    What are the exact prerequisites to run this utility?

    will this Copyapp.properties bring the properties of the source app to target app if there exist no prop file created for target app?
    and will the copyapp/properties contain
    SOURCEAPPNAME_JDBC_CATALOG=SOURCEDBSID
    SOURCEAPPNAME_JDBC_DRIVER==
    SOURCEAPPNAME_JDBC_URL=
    SOURCEAPPNAME_JDBC_USERNAME=SourceOracleUsername
    SOURCEAPPNAME_JDBC_PASSWORD=SourceOraclePassword
    SOURCEAPPNAME_JDBC_DATABASE_TYPE=
    SOURCEAPPNAME_OLAP_SERVER=SOURCEESSBASEHOSTNAME
    SOURCEAPPNAME_OLAP_USERNAME=SourceEssbaseSuperUser
    SOURCEAPPNAME_OLAP_PASSWORD=SourceEssbasePassword
    SOURCEAPPNAME_OLAP_APPNAME=sourceappname
    or
    SOURCEAPPNAME_JDBC_CATALOG=SOURCEDBSID
    SOURCEAPPNAME_JDBC_DRIVER==
    SOURCEAPPNAME_JDBC_URL=
    SOURCEAPPNAME_JDBC_USERNAME=SourceOracleUsername
    SOURCEAPPNAME_JDBC_PASSWORD=SourceOraclePassword
    SOURCEAPPNAME_JDBC_DATABASE_TYPE=
    SOURCEAPPNAME_OLAP_SERVER=SOURCEESSBASEHOSTNAME
    SOURCEAPPNAME_OLAP_USERNAME=SourceEssbaseSuperUser
    SOURCEAPPNAME_OLAP_PASSWORD=SourceEssbasePassword
    SOURCEAPPNAME_OLAP_APPNAME=sourceappname
    DESTAPPNAME_JDBC_CATALOG=DESTDBSID
    DESTAPPNAME_JDBC_DRIVER=hyperion.jdbc.oracle.OracleDriver
    DESTAPPNAME_JDBC_URL=
    DESTAPPNAME_JDBC_USERNAME=DestOracleUsername
    DESTAPPNAME_JDBC_PASSWORD=DestOraclePassword
    DESTAPPNAME_JDBC_DATABASE_TYPE=
    DESTAPPNAME_OLAP_SERVER=DESTESSBASEHOSTNAME
    DESTAPPNAME_OLAP_USERNAME=DestEssbaseSuperUser
    DESTAPPNAME_OLAP_PASSWORD=DestEssbasePassword
    DESTAPPNAME_OLAP_APPNAME=destappname
    should there be a DSN for the target app created before hand?

  • What are the steps to sign an applet

    I've been searching and reading for weeks now and just recently I though I had it... I put my Uploader tool online, and the "grant yes/no" came up!! I was excited, and then the applet showed up. This was the farthest i'd gotten thus far, and then... it didn't pop up the JFileChoser. It failed yet again.
    I've searched all over the internet for a way to sign your own applet for free. It doesn't need to be trusted, so long as the applet works by just granting permision.
    If you know the steps to signing an applet, then please post them here. Make them easy to follow, with little on the details of how it works.
    And don't stop at just signing the applet.. keep going until the signed applet is uploaded onto a test server. That, I think, is where a lot of people get confused.
    Nobody has yet done this that i've seen (writen a tutorial) and i've been searching fo weeks!
    Greatly appreciated by myself, and thousands to come.

    I have a signed jar file and a html file on my desktop. I'm loading this jar file localy for testing, and the "grant permision [y/n]" pops up.
    The button also pops up. however the JFileChooser does not.
    The jar has been self-signed, and verified using jarsigner -verify Uploader.jar.
    my end pupose is to allow Multi File Uploading on my site.
    I just want my users to accept my applet, and allow my applet to have read permissions enabled.
    I'm not sure if i need a policy file, and if so, where to put that? in the jar? in the same directory? or do I tell the Html file to link to where the policy file is.
    I don't want my users to have to do anything but accept my applet.
    below is my java code for the uploader.. I thought maybe I need to request permission there too.
    And below that is the html file located on the desktop that loads my applet... incase i need to put code in that too.. like a link to a policy file?
    JavaCode..
    /* This Applet will allow the user to upload multiple files at a time
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.io.File;
    import java.util.jar.*;
    import javax.swing.JFileChooser;
    import javax.swing.SwingUtilities;
    public class Uploader extends Applet implements ActionListener
         Button addFiles;
         Color bgColor;
         public void init()
              //this gets parameters from HTML to set the bgColor
              int r = Integer.parseInt(getParameter("r"), 16);
              int g = Integer.parseInt(getParameter("g"), 16);
              int b = Integer.parseInt(getParameter("b"), 16);
              //set bgColor
              bgColor = new Color(r,g,b);
              //change Background color to bgColor
              setBackground(bgColor);
            setLayout(new FlowLayout());
            addFiles = new Button("Add Files");
            //check if user wants to add files..
            addFiles.addActionListener(this);
            add(addFiles);
         public void actionPerformed(ActionEvent e) {
              //If the upload button was checked.. upload files..
              if (e.getSource() == addFiles){
                   SwingUtilities.invokeLater(new Runnable() {
                        public void run() {
                          JFileChooser fileChooser
                                 = new JFileChooser(".");
                          fileChooser.setMultiSelectionEnabled(true);
                          int status = fileChooser.showOpenDialog(null);
                          if (status == JFileChooser.APPROVE_OPTION) {
                                 File selectedFiles[] =
                                      fileChooser.getSelectedFiles();
                             for (int i=0,
                                  n=selectedFiles.length; i<n; i++) {
                                       System.out.println("Selected: "
                                       + selectedFiles.getParent()
              + " --- "
              + selectedFiles[i].getName());
    HTML
    <!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en">
    <html><head>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
       <meta name="GENERATOR" content="Mozilla/4.51 [nl] (Win98; I) [Netscape]">
       <meta name="Author" content="Bavo Bruylandt (RealApplets.com)">
       <meta name="Description" content="Upload Multiple files at once.">
       <meta name="KeyWords" content="Java applet that uploads multiple files at once"><title>Upload-Multi - Applet</title></head>
    <body>
         <center>
              <applet code="Uploader.class" archive="Uploader.jar" height="30" width="100">
                     <param name="r" value="de">
                     <param name="g" value="ad">
                     <param name="b" value="00">
              </applet>
         </center>
    </body></html>

  • What are the steps for publish applications WD ABAP in the portal

    Dear Experts.
    The developers created an appplications WD ABAP. And my work is publish this development in the Portal of ESS.
    Anyone can help me with the steps for publish the development(applications WD ABAP) in the portal.
    Thank in advance for your help,
    Best Regards
    Carmen.

    Hi ,
    Please follow the below links for creating ABAp web dynpro iview in portal.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/1d/e4a34273f60b31e10000000a1550b0/frameset.htm
    http://www.sapdev.co.uk/sap-webapps/sap-portal/iview-wdp.htm
    Also you have to ensure that the system is created in portal and also check the system connectivity with backend.
    You need to select this system while creating iview.
    The below links will help you to create systems in portal.
    http://wiki.sdn.sap.com/wiki/display/EP/11Systems-+Creation
    http://wiki.sdn.sap.com/wiki/display/EP/SystemCreationin+portal
    http://wiki.sdn.sap.com/wiki/display/EP/HowtoCreateSystemObjectinthePortalforConnectingtoSAPbackend+System
    Hope these will help you.
    Regards,m
    Sandip

  • What are the steps for installing applet on real card?

    Hi,
    It has been a month that I am fighting to install applet on java card and now I am really confused where I am going wrong?
    I have 3 sets of cards --
    1 ) Gemalto (no specific name known) - ATR is --3B 6D 00 00 80 31 80 65 B0 84 01 00 AC 83 00 90 00
    As gemalto customer support doesn't know about this card so I was unable to find its card manager AID. The standard Game expresso card manager AID does not work with this card.
    2 ) Pre- Personalized NXP card-- This is JCOP 3.1 complaint pre-personalized card but i am not able to perform Init- Auth using a GPShell script. I have key but some how GPshell script does not work.
    3) NXP Smart MX family cards(IBM JCOP v2.2 41) -- These cards are not pre-personalized. So what i am supposed to do with these cards so that they will be pre-personalized?
    I will be really thankful for any kind of reply.
    Edited by: Amit_D30 on Jul 28, 2008 4:59 AM

    Any ways I got rid of this error as my card was supporting mode 201 of GPShell instead of mode_211.
    But even with the mode_201 I am getting error as card cryptogram failed.
    mode_201
    enable_trace
    establish_context
    card_connect -readerNumber 2
    * reader name SCM Microsystems Inc. SCR33x USB Smart Card Reader 0
    select -AID a000000003000000
    Command --> 00A4040008A000000003000000
    Wrapped command --> 00A4040008A000000003000000--
    --Response <-- 6F198408A000000003000000A50D9F6E0640513085301A9F6501FF9000
    open_sc -security 1 -keyver 0 -mac_key 404142434445464748494A4B4C4D4E4F -enc_key
    404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F
    Command --> 805000000836DC4EE52137774C00
    Wrapped command --> 805000000836DC4EE52137774C00--
    --Response <-- 00006257001272910423FF01E2F21D6A304D83EC4EE5060A0A5DC3669000
    mutual_authentication() returns 0x80302000 (The verification of the card cryptog
    ram failed.)Also I read on java forums that FF01 means I need to use Security 1 and kevar as FF. But I have basic question. The number of retries for authentication for a card are limited. And i have already done it for 5-6 times
    So should I try it again or Will my card get blocked? (out of 5-6 tries only one try returned me Card cryptogram failed error in other cases I was getting error as Invalid parameter P1,P2 )

Maybe you are looking for

  • Project systems integration with portal (EP)

    Dear all, I have to integrate the projects systems module with Portal.(EP) In portal transactional I views can be used to create projects which can be store in the R/3. Now the issue is to create projects with out using Transactional I views. This sh

  • Retutn Policy should be updated.

    My son lives with me in US. His Aunt gifted him a Nintendo, the purchase place of that game was Canada. Now the point is, he didn't like it so much. I noticed he was more interested playing his old games, and the nintendo was just sitting on the shel

  • HT6550 Better protection of personal information at iCloud

    In Europe new laws are being introduced regarding data protection. So I expect that two way authentication will be forced. We use a new technique with device DNA and short living cert's. Unique is they way we handle key management. In a large environ

  • PowerMac 5.1 drag and drop not working, any suggestions?

    Powers Mid 2010 5.1 running 10.10.3, drag and drop not working smoothly, won't engage to drag. Any suggestions?

  • Challan Material is Different from Material Document Message No. : 8I 572..

    Dear All, Good afternoon. In my company, after version upgrade from ECC5.0 to ECC6.0, facing one peculiar issue i.e in MIGO for subcontract order : When I enter challan number for reference in pop-up, We are getting the below error "Challan Material