Portal SSO to a Java Applet

Hello,
I have a customer that is looking to set up SSO with an application that uses a Java Applet as its login screen to the app.
Any advice on how this can be set up. SSO via External Application doesn't seem to work since it doesn't use a GET or POST method.
Thank You!
Padmini

An applet (with normal security setup) can only open up socket connections to the host from whence the applet came. Sounds like your applet is trying to talk to port 5000 on the client's box. Can't do that, unless:
a) The client's box is the server (which is the case under your first scenario)
b) The applet is signed or otherwise set up to be "trusted" that it doesn't contain harmful code.
The security policy is there for a reason. I, for example, wouldn't want to stumble across some rogue applet out on the internet which then tries to open up socket connections to things on my corporate intranet or local machine -- unless I KNEW it was going to do that (I "trust" it).

Similar Messages

  • Using the Portal Single Sign-On for java applet clients

    Hi
    We have a task to build a java applet working within a portlet and comunicating to some session EJB(wrapped BC4J) running on the OC4J. The applet is presumably connecting to server via RMI. This connection should be restricted to some groups of portal users.
    When a user is entering the applet he is supposed to be already logged into the Portal.
    There is a lot of information on building custom secure portlets using only a pure HTML(same as JSP) client whith the help of the Portal Single Sign-On.
    But, is it possible to use the Single Sign-On for establishing a secure RMI connection from applet to OC4J without entering a password in the applet once more?
    Yuriy

    Perhaps you can write a small JSP page or PLSQL
    web procedure that will grab user name from
    the SSO Server (via SSOSDK/mod_osso)
    and invoke the applet with encrypted user name.
    The applet will receive the encrypted username
    and decrypt it to get the clear user name.
    This help to get Single Sign-On.
    To make sure that environment is secure, encrypted
    user name parameter should have random salt,
    user name, and time stamp to prevent replay attack.
    Applet must make sure that the encrypted users name
    time stamp set by the JSP/PLSQL page has value
    within a reasonable time limit like 5 minutes

  • How to call Java Applet on a Oracle Portal page

    I have completed the below steps to add an Java Applet class file to the Oracle Portal.
    1. On the Portal Builder page, click the Navigator link.
    2. Click the Database Objects tab.
    3. In the Name column, scroll down to the schema in which you want to build the 4. object.
    5. Click the schema's name.
    6. Click Create New...Java Object.
    7. Click Java Class.
    8. Complete each wizard page until you reach this page.
    9. Granted PUBLIC access.
    I have created an html portlet on page an added:
    <applet class ="XXCPORT.MyJavaApplet">
    </applet>
    However, it does find the applet when I view the page. Is there some additional path or parameters I need to add?

    If you are asking if you can execute an external process (application/applet) from another application/applet - the answer is yes and no.
    Yes. If you have the security settings/policy to do so.
    No. This may require a security policy to be allowed - as an applet.

  • Datasource from Portal (Java Applet)

    Oracle Application server 10.1.2 and Portal 10.1.4, DB 10.2.0.1.0.
    We are familiar with using either properties file or data_source.xml to store the DB connection information. We are deploying .ear file and implementing as a portlet in Oracle Portal. We like NOT to hard code the datasource info (in properties file or data_source.xml) and hoping to use the one from Portal/SSO. Or at least make it more secured than saving in an XML file.
    Any thoughts are well appreciated.
    Thank You

    Oracle Application server 10.1.2 and Portal 10.1.4, DB 10.2.0.1.0.
    We are familiar with using either properties file or data_source.xml to store the DB connection information. We are deploying .ear file and implementing as a portlet in Oracle Portal. We like NOT to hard code the datasource info (in properties file or data_source.xml) and hoping to use the one from Portal/SSO. Or at least make it more secured than saving in an XML file.
    Any thoughts are well appreciated.
    Thank You

  • JPDK java applet development

    Hi,
    I've been trying to develop a java applet application and deploy it on a portal page. I managed to use a HTML portlet to link the java applet through an URL. So far so good. But then I wonder is that a good way for this implementation? Can anyone share their experience.
    Furthermore, I'm trying to use the portal SSO for login. Is there any Java api to retrieve the SSO user id, so that I can past it to my Java applet application. I'm very interested for any sample code.
    Thanks!

    Hi Kevin,
    It is possible to develop a JPDK portlet and use it for deploying an applet on the client end. I have developed a simple example of a telnet portlet which is basically an applet which has been embedded into the portlet. The sample is available on Knowledge Exchange. You will need to sign-up for it, if you havent yet.
    http://portalstudio.oracle.com/pls/ops/community.comm_folder_download.get_item?p_folderid=538287&p_itemid=569449&p_caid=233
    Secondly, if your applet intends on accessing system resources on the client end, then you will have to sign your applet jar file.
    You can use the JPDK APIs to retrieve the userID (provided you only need the user id).
    PortletRenderRequest pReq = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    pReq.getUser().getName();
    Hope that helps,
    thanks,
    Harsha

  • Java (applet), getting started ...

    Hi all,
    I am not new to Java programming, I have done some simple projects many years ago, all using simple text editors and cmdline compilers.
    Now I am doing some initial research for a somewhat larger project which requires more/complex GUI interfacing.
    I remember all the hassle I had in the past to make a good GUI using simple text editors, and that just isnt useable for this type of project, so I am looking for Java (Applet) GUI development tools.
    My questions are:
    1) Does someone know of an adequate GUI development tool (or IDE) which allows me to create Applets?
    (I know of several larger IDE's, like Sun's Studio Creator and Studio Enterprise and others, but none of them allow me to create GUI for Applets ...)
    2) The project I am looking at wants to have a webbased application, so users can access all over the world (internet) without any installation hassle. I immediately think of Java applets (because some GUI is involved aswell), but perhaps there are newer/more suiteable solutions nowadays?
    Thanks for your answers,
    Bonny

    Bonny,
    I'm no architecture expert but... for "enquiry only" functionality option 1 is a straight webapp in JSP, judicious beans, and hibernate on MySQL. I'd only go to applets for updates, or complex enquiry requirements.
    IDE's
    NetBeans: http://www.netbeans.org/
    Eclipse: http://www.eclipse.org/downloads/
    Servers
    Sun J2SE standard svr: http://java.sun.com/j2se/1.5.0/index.jsp
    Sun J2EE enterprise svr: http://www.sun.com/software/products/appsrvr/index.xml
    Apache Tomcat: http://tomcat.apache.org/
    BEA Weblogic: http://www.bea.com/framework.jsp?CNT=index.htm&FP=/content/products/weblogic/server/
    See Also
    JBoss: http://labs.jboss.com/portal/ (opensource J2EE server)
    Apache Project: http://www.apache.org/
    and of course http://www.google.com.au/
    Keith.

  • Baseball TV Java Applet

    Hi. I'm new to java but not new to programming in general. I have a few web sites under my belt but now I want to add something to my site just for fun and I want to do it with a java applet type program. My question today is very preliminary but I like long answers. How best to go about what I will try to explain. I want to create a program that shows a baseball diamond in the middle and an area for the Home players and an area for the Visitors. These area will hold small images of baseball players. I want the website visitor to be able to watch a baseball game on TV and place the players around the diamond to keep up with the game. I want buttons for the pitcher that the user can click on for every pitch thrown (strike, foul, ball, etc...). I do not see in any tutorials that I have found as to how to save the game stats. I want to set the game up in advance and register the names of each opposing teams. When the website visitor hovers over a player I want the players name, number, position to show up on the screen somewhere. I am ready to do a lot of programming to make this look simple to the user. Should the baseball player team names be kept in an XML file? My applet will not involve any animation. It will be a simple click and drag platform so I don't think it will seam slow in anyway to the user. Also when I get the thing working for one visitor I want to make it work for a group of visitors. One visitor will take care of one player's position in the game. Each thing that happens to a hitter is recorded. I will have small hot spots on the field so the web visitor can easily click something like "stole 2nd base" or "hit a home run" or "Struck Out". Most of you get what I'm saying. I tend to overstate my case every time. I will be going through the tutorials and learning systems form this (Sun Developer Network) web site to get a handle on this project. I might best be served if someone could point me in the right direction for learning.
    Thanks, Golite.

    >
    srinivas rao wrote:
    > Hi All,
    >
    > I have 2 questions.
    > 1. I want call Java Script alert in my web dynpro applicattion. And how to call in WDA ??
    > 2. Is there any possibility of JAVA APPLET for e.g STOCK TICKER or MARQUEE in WDA ??
    >
    > Thanks in Advance.
    > Srinivas.
    1.  There is no direct access to JavaScript in WD.  The Client implementation is abstracted for several reasons - not the least of which is that your WD application can run in the browser, in the Flex Client and in the NetWeaver Business Client.  Therefore JavaScript is not always the runtime.  If you want to "throw an alert" in WD you should use the message object or produce a dialog popup.
    2.  There is no method for customers/partners to directly integrate Java Applets.  SAP does use some Java Applets within our UI elements.  The current answer if you want to do such a thing is to use the NetWeaver Portal and have two separate iViews on one Page. One iView can be in WD and the other in JSP/JSF/BSP which would allow such integration.  Very soon we will have Flash Islands however that allows the integration of Flash/Flex Components in WD and would allow customers and and partners more freedom to integrate "islands of rich functionality" directly in WD.  Next year we will extend this framework to also offer support for Microsoft Silverlight Islands.

  • Embed java applet in web dynpro

    Hi experts,
    is it possible to embed a java applet into a web Dynpro application. Or have I to use a jsp / Servlet / AbstractPortalApplication / (JSP)Dynpage
    Regards
    Fllo

    Hi
    yes its possible...
    go thorugh these docs..:[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/91b8c890-0201-0010-c787-be96f6fade89]
    [http://www.vogella.de/articles/SAPWebDynpro/article.html]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8382535d-0d01-0010-dbb5-d3d41dfefd10]
    hpe it hlps u..
    Regards,
    Khushboo

  • Using Java Applet in WebDynpro Application

    Hello,
    I have the problem that I must access the client in my WebDynpro Application.
    But I found no way to include a Java Applet in my application, so my question: Is it generally possible to include a Java Applet or not?
    If it is not possible with an Applet, is there any other way to access the client?
    Thanks a lot

    We actually embed Java applets in our application. But only on the portal.
    Wrap the applet around a BSP.
    Call the URL in an iframe.
    To prevent the reloading problems that we see with applets and actions, we put the applet in a modal window, with an OK button at the bottom so that when applet processing is finished, the rest of the web dynpro functionality resumes.
    If you need to have them both in the same page, you can embed the BSP iview in the same portal page.

  • Java applet, url iView

    Hi,
    is there anything to be said against integrating a java applet-based application into a portal page by just creating a normal url iview (and embedding it into the page)?
    Regards,
    Sebastian

    Hmm.. tried it with Sun's demo applet 'tic tac toe'; looks good so far. I am getting an unspecific 'permission denied' javascript error though, but it works anyway. The page is displayed correctly and I am able to play tic tac toe...

  • Invoking Java Applet from SAP Netweaver Eportal using java webdynpro

    Hi ,
    We are using SAP Netweaver portal version 7.0.WE want to invoke java applet into webdynpro java application on button click.
    The Applet should open in a new window when the particular parameter is selected and the button is clicked
    The code is given below:
    String html = "<HTML> <HEAD></HEAD> <BODY><APPLET code=\"org.faceless.pdf2.viewer2.PDFViewerApplet\" type=\"application/x-java-applet;version=1.4.2_05\" archive=\"bfopdf.jar\" width=800 height=600></APPLET></BODY></HTML>";
    IWDCachedWebResource resource = WDWebResource.getWebResource(html.getBytes("UTF-8"), WDWebResourceType.HTML);
    resource.setResourceName("HTML_inline.html");
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getAbsoluteURL(),"Image");
    window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
    window.open();
    But after clicking on button new html window is opening and the applet is not showing properly. The java console showing the error:
    java.lang.ClassFormatError: Truncated class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassFormatError: Truncated class file
    Please suggest how to solve this error.
    Regards,
    Dhruba

    Hi,
    I'm not sure, but I believe the 'code' argument should end with '.class'. However, your implementation of displaying a Java applet seems ok, the error is within the applet's Jar file
    Anyway, have a look at http://download.oracle.com/javase/1,5.0/docs/guide/plugin/developer_guide/using_tags.html#applet and http://www.w3.org/TR/html401/struct/objects.html#h-13.4 on how to use the <applet> tag
    As a test, you could try and create a local HTML document on your local desktop, including the applet. I would suspect you will receive the same error in your Java console
    I believe the only option is to recompile your Java applet (if possible at all) against a newer JDK (1.4 and up)

  • Rewriting java applet parameters

    I am attempting to get a java applet to work through the portal. Of
    course it
    does not work "out of the box" The applet is a menuing applet and it
    gets is
    text for the menu options (and the associated links) from the applet
    parameters. I have read the documentation for this and, in typical Portal
    Server documentation fashion, it has been less than helpful.
    Here are the details: The asp page that loads the applet is loaded from
    /menu/menu.asp Here is the HTML that loads applet and sets some of the
    parameters:
    <td><APPLET name='1' code='imgMenu.class'
    codebase='class/'height='17' width='124' id=Applet1>
    <param name='xloc' value='0'>
    <param name='yloc' value='17'>
    <param name='upimage' value='/menu/images/bbusinessunit.gif'>
    <param name='placement' value='right'>
    <param name="item1" value="0|ACT - Alaska Consolidated Team">
    <param name="item2" value="1|ACT Home">
    <param name="URL2" value="http://alaska.somewhere.com/act|_top">
    <param name="item3" value="1|ACT Badami">
    <param name="URL3" value="http://alaska.somewhere.com/cns_badami|_top">
    <param name="item4" value="1|ACT Endicott">
    I configured the rewriter like this:
    /menu/menu.asp imgMenu.class upimage
    /menu/menu.asp imgMenu.class URL*
    so that the upimage parameter would be rewritten as well ad the URL*
    parameters (there are URL1 all the way to URL53). This does not work.
    Has anyone gotten the Java applet paremeters rewriting working? If so,
    what I am I missing?
    Kent
    "For everything there is a season, and a time for every matter
    under heaven: ... a time to love, and a time to hate; a time
    for war, and a time for peace."
    -- Ecclesiastes 3:1,8

    sig and J.C. Westin-
    I used the Adobe Flash UNinstaller, and then installed Adobe Flash Player v10.0.12.10. No improvement/it did not correct the problem. Power E*Trade Pro (a Java Applet) still won't start properly (since Apple Software Update installed Java Release 7).
    I even did all the Repair Permissions steps before and after Flash UNinstal/reinstall (suggested by J.C. Westin; even though they did seem somewhat excessive; Note: all permissions were set properly before installing; Permissions DID need repair AFTER installing Flash; guess that Adobe doesn't get the permissions right in it's own installer!).
    To be honest, I did not really place much hope in solving the problem via an update to a BETA version of Flash. The problem occurred when I updated Java (per Apple's Software Update), not when doing anything with Flash. More to the point, I don't believe the Java applet that's having problems now uses Flash at all. Placing hope in a Flash BETA seemed to me like being told to replace my brake fluid after complaining the engine wasn't running.
    I'm (still) looking for a (non-draconian) way of reverting back to Java Release 6. Someone has to have some steps for trashing specific files/binaries to Remove Java Release 7, then installing the full Java Release 6 anew. Please? Anyone? Trashing the entire OS then performing a clean install is a huge amount of work. I just need to trash Java Release 7.
    Thanks in advance to anyone who can help here.

  • JAVA Applets from Adobe Flash/MS Silverlight?

    SAP has recently announced that it will no longer support
    invocation of JAVA applets directly from its "WebDynproABAP" or
    "WebDynproJava" applications. (Until recently, SAP supported an
    "iframe" UI element that could be used to run JAVA applets from
    within WebDynpro applications - soon this will be only doable in
    frames within SAP's portal via "client-side eventing".)
    However, SAP will be supporting invocation of Adobe Flash and
    MS Silverlight from within its WebDynpro Applications.
    So here's my question.
    From an SAP WebDynpro application, I want to pass parameters
    to the JAVA applet "JMol" and have it run in a separate frame.
    Since I will no longer be able to call this applet directly from
    the SAP WebDynpro application, I'm wondering if I could pass
    parameters to Adobe Flash or MS Silverlight and have Flash or
    Silverlight invoke the applet for me with the correct parameters.
    (I would still only want two frames - the one that the SAP app is
    running in and the one that the JAVA applet winds up running in.)
    Relevant links for this question are:
    https://forums.sdn.sap.com/thread.jspa?threadID=939821&tstart=0
    and its follow-up here:
    https://forums.sdn.sap.com/thread.jspa?threadID=972132&tstart=0
    Thanks for any time anyone can afford to spend considering
    this question, and for any answer(s) anyone can provide.
    David Halitsky

    This link:
    http://www.adobe.com/devnet/flash/articles/external_interface.html
    says that javascript can be called from Flash
    So is it as simple as invoking the Java applet from the
    javascript ?

  • Loading Java Applet Failed : Getting Red "X"

    Hi all
    I have JRE 1.6.0_07 loaded on my machine. When i try to access a particular website from my machine i can see an orange Java Logo and then after some time i get a "Red" "X" on top left with a message in bottom of browser
    "Loading Java Applet Failed".
    I am Using IE 6.0.2900.2180.xpsb_sp2...on a Windows XP SP2 Professional .
    I also get a Error Message as
    "General Exception"
    Name - Batchmanage
    Java.lang.classnotfoundexception.batch.class
    1) However when i disable Options ==> Advance ==> Java(Sun) ==> Use JRE 1.6.0_07 for <applet>
    and enable Options ==> Advance ==> Microsoft VM ==> Jit Compiler for VM enabled
    Application runs fine.
    2) But if i Enable Options ==> Advance ==> Java(Sun) ==> Use JRE 1.6.0_07 for <applet>
    and disable Options ==> Advance ==> Microsoft VM ==> Jit Compiler for VM enabled
    Applications Give error mentioned above and Red X
    3) Similary if i enable Options ==> Advance ==> Java(Sun) ==> Use JRE 1.6.0_07 for <applet>
    As well as enable Options ==> Advance ==> Microsoft VM ==> Jit Compiler for VM enabled
    Still Application Gives error mentioned above and Red X
    For some machines we have observed that it runs fine with Java (Sun) enabled with no Microsoft VM
    Any advise or help would be appreciated
    Thanks

    Hi,
    I am facing the similar problem and following is my applet code which is causing the problem.
    Can you please help me out?
    *<applet name="lic_install" archive="gias/sign_lic_install.jar" codebase="/irj/portalapps/com.test/applet" code="gias/step4calicenses.class" width=200 height=75px>*
    *<param name="sitelicenseurl" value="http://abc.test.com/irj/servlet/prt/portal/prtroot/com.test.DownloadALPLicenses" >*
    *<param name="siteProdcodesURL" value="http://abc.test.com/licenses/applet/gias/prod_codes.txt" >*
    *<param name="siteLic98URL" value="http://abc.test.com/licenses/applet/gias/lic98.cap" >*
    *<param name="siteGetRegistryValDll" value="http://abc.test.com/licenses/applet/gias/step4jnigetpath.dll" >*
    *<param name="siteMergeWinEXE" value="http://abc.test.com/licenses/applet/gias/mergeolf.exe" >*
    *</applet>*

  • Access to Guest Folder requires login when accessed from Portal/SSO

    We have wired XML-P to use OID and then registered it as a Partner Application in our Portal/SSO server (which also uses the same OID instance). All works well except now when we try to access the Guest folder from within Portal the SSO login screen pops-up. We have created a very simple HTML/URL portlet that points to the Guest folder and the idea is for users to have Public/anonymous access to this folder. Any ideas?

    Hi,
    You can try to enable "Turn on password protected sharing" in Network Sharing Center. After that, only people with a user name and password on the computer will be able to log into shared network folders.
    Another workaround method you can try:
    Open Run, type rundll32.exe keymgr.dll, KRShowKeyMgr, then Press
    Enter.
    In the prompt dialog, choose and delete the user account used to network sharing.
    Roger Lu
    TechNet Community Support

Maybe you are looking for