How to get the client identity from the certificate at server side

hi, this is ravi kiran,
I am working on a project which requires, receiving a signed file from the client side and verify whether the file is signed by a valid certificate that is there in the servers keystore.
How can i get the client certificate at server side and check with the certificates already present in the servers keystore.
i have no idea how to do this
can any one help me
thanx in advance

Hi Ravi, did you get any answer to your question ?
I'm also after a similar problem, please share your solution, if you have any.

Similar Messages

  • How to get ther servlet name from the Httprequest / servletContext

    Hi,
    How can I get the servlet name from the Http Request / Servlet conext?
    Arthik

    I have a requirement to call the business logic either in local server / external server.
    Local / External server
    The original / main request is made to the server from the client and from the server if the main request requires some resource (second request from server side) available in the external server then I need to make a URL connection. If the requested resource is the local resource then I need to by-pass the HTTP call. So I need to verify the server name , port with the originally requested server.Then I need to check if the request servelt is available in local or not.
    Can you please help me.

  • How  to Hold the client ip from the client calls made to the ejbweb servic?

    Hi
    I am working on Ejb3 web services.I want to hold the client ip from the client calls made to the web service.I deployed this service in jboss AS 4.2.1
    In the service implementation i started using
    @Resource
    SessionContext sessionCtx;
    My idea is to get the MessageContext from this SessionContext and finally to get the HttpServletRequest.
    I got the sessionCtx(BaseSessionContext) object.When i am trying to access the MessageContect using the below syntax
    System.out.println(sessionCtx.getMessageContext());
    I got ---ERROR [SOAPFaultHelperJAXWS] SOAP request exception
    javax.ejb.EJBException: java.lang.IllegalStateException: No message context found
    Please provide me with correct solution to this problem.Please also suggest if there is any alternate approach to get the client ip in the service implementation.
    Thanks
    Adinarayana

    Hi,
    Assuming that you are using Form 6i or greater, one way to do is to embedd a java bean in the form, this bean would get you the ip address and in the form you can get_custom_property( ) to get the value from the bean to the oracle form.
    There is one demo example in OTN site to get the ClientIP address, check out if that helps you.
    Regards,
    Dinesh

  • RMI call back - How to refer to the client project from the server project?

    Hi, I am working on an RMI assignment which basically needs me to use the RMI call back for the server to notify the clients.
    I have 2 projects , one for the client and another for the server.
    In the client project, I have a client interface and the main client class implements this interface.
    In the server project, I have a server interface and a class that implements this interface.
    I can use the server interface in the client project's code by adding the server project in the path of the client project. it lets me use the server interface in the code if I put "import.." statement.
    But the issue is I can not do the same to access the client interface from within the server project's code. Since that will be a circular reference, the compiler does not let me use the client interface from within the server's code. This is putting me in a great difficulty and I am stuck here. What should I do so that I can use the client interface and the compiler won't complain?
    Thanks for any help..
    Regards.. js

    Let me explain what I tried: I manually generated stub class of the client using the Eclipse IDE as mentioned in my previous message. The StockMSClient_Stub.class got created in my client project.
    The common project has the 2 interfaces - one from the client and one from the server.
    I have added reference to the common project from the client and server projects to use the interfaces.
    With the above mentioned in place, when I run the server project, the registry binding of the server objects is very fine. But I am getting error in the applet at the line where I am passing the client object to the method provided by the server interface. The following is the code snippet in the applet where I am getting the error.
    specifically the line: String response = objs.login(userId, password, smsClient);     ====================
    public void login() {
                Registry reg = null;
                String userId = "test";
                String password = "test";
                this.smsClient = new StockMSClient();
                try {
         reg = LocateRegistry.getRegistry(rmiHost,rmiPort);
                          UserInterface obj = (UserInterface) reg.lookup(rmiStrings
                                                                                                                        [1]);
         User u = obj.find(userId);
         if (u == null) {
              System.out.println("This user is not valid");
         } else {
                         UnicastRemoteObject.exportObject(smsClient);
         reg = LocateRegistry.getRegistry(rmiHost, rmiPort);
         LoginLogoutInterface objs = (LoginLogoutInterface) reg
                                   .lookup(rmiStrings[0]);
                        //getting error at the following line.
                        String response = objs.login(userId, password, smsClient);     
                         System.out.println("response :" + response);
               } catch (AccessException ae) {
                       System.out.println(ae);
               } catch (NotBoundException nbe) {
                      System.out.println(nbe);
               } catch (RemoteException re) {
                      System.out.println(re);
    } //end login()====================
    Error is:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
         java.lang.ClassNotFoundException: sms.rmi.graphics.StockMSClient_Stub (no security manager: RMI class loader disabled)================
    I don't know why this is happening..Please help.
    thanks & regards, js
    Message was edited by:
    jsitaraman

  • How to get first 10 records from the database using JSP

    i want ot get first 10 records from the database and then after clicking the next button in the page,it must show the next precceding 10 records from the database.i am getting the first 10 records .but how to post to the same page to get another preceeding 10 record.

    Search the forums - this has been asked a lot. I usually recommend experimenting with tops and order bys until you're satisfied.
    Kind regards,
      Levi

  • ADF BC - How to get validation picked up from the database.

    Is there a way the ADF BC can be created so it contains the check constraints from the database?
    I assume if it did, it would pre-fill the "validation" branch in the Entity Object Editor.

    Frank,
    Thank you very much for your reply. I've set "valuePassThrough" property of the dropdownlist to true. In the valueChangeListener, my code looks like this.
    public void TD_valueChangeListener(ValueChangeEvent valueChangeEvent) {
    System.out.println("+++++++++");
    System.out.println("TD_valueChangeListener");
    Number n = null;
    BindingContainer bc = this.getBindings();
    if(bc != null){
    System.out.println("bc is not null");
    //get the selected TD
    FacesCtrlListBinding TdIter = (FacesCtrlListBinding)bc.get("LandLegalView1Td");
    if(TdIter != null){ 
    System.out.println("TdIter is not null");
    if(valueChangeEvent.getNewValue() != null)
    try{n = new Number(valueChangeEvent.getNewValue());}
    catch(Exception e){
    e.getMessage();
    System.out.println("selected TD index="+n);
    //Object td = TdIter.getAttributeFromRow(n.intValue(), "Td");
    Object td = TdIter.getAttribute(n.intValue());
    System.out.println("real value of td=" + td);
    }else{
    System.out.println("TD is null");
    }else{
    System.out.println("TdIter is null");
    My question here is: I tried two ways of getting the real value of the new selected value. One is "Object td = TdIter.getAttributeFromRow(n.intValue(), "Td");". The other is "Object td = TdIter.getAttribute(n.intValue());". None of them give me the new selected value but the old value. Did I do anything wrong?
    Regards,
    Annie

  • How to get Original Message ID from the MDN of Acknowledgment?

    Hi,
    Here is the usecase...
    Host Trading Partner: ABCHost (Host)
    Trading Partner: XYZPartner
    Transport Protocol: HTTP1.1
    Exchange Protocol: AS2
    Business Protocol: Custom Document over Internet
    There are 1000s of messages sent via B2B to the Trading partner and the Acknowledgement is received. Now that the Trading Partner system receives a lot of messages per day, they are asking us to give them the MDN Ids from the Acknowledgment they sent in order to find the transaction.
    Is there a way to generate a report to do that using the Timestamp, Business Action, Sending/Host Trading Partner, AS2 Identifiers etc.?
    If not thru' the B2B Console, is there a way to write a query to run on the backend to generate the report?
    Thanks
    Bala

    Hi Bala,
    You can see the details of MDN in the B2B repository in the view "b2b_instancemessage" or in the table "tip_businessmessage_rt".
    You can refer InstanceMessageUtil (http://download.oracle.com/docs/cd/B14099_19/integrate.1012/b19324/oracle/tip/adapter/b2b/utility/InstanceMessageUtil.html).
    Rgds,
    Nitesh Jain
    [email protected]

  • How to get file input stream from the client machine by JSF Fileupload API?

    Dear Friends,
    How to get the file input stream from the client machine by JSF HtmlFileupload or fileupload API. At present, if i execute the file upload code in the client machine, it is able to get the local path of the file and looking for the file in server machine. So i am getting FileNotFoundException.
    E.g., If a file is located at client machine at following location means "C:\Test\Test.txt",
    uploadClass.getFileuploadComponent().getFilename().toString() returns "C:\Test\Test.txt". But it is looking for that file in server and throwing FileNotFoundException.
    Please post your replies soon.
    Thanks,
    JP

    Depends on which version of JSF you're using. If JSF 1.2, I wouldn't even bother trying to hack this into JSF itself unless you can use something like Seam 2 or richfaces.
    http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_fileUpload.html
    http://docs.jboss.org/seam/2.2.1.CR3/reference/en-US/html/controls.html#d0e29259 (look for s:fileUpload)
    But if I were you, a simple non-jsf form with a servlet works best for taking file uploads.
    As for JSF 2.0, there are other ways of getting it done.
    http://balusc.blogspot.com/2009/12/uploading-files-with-jsf-20-and-servlet.html

  • How to get login crenditials(Result) from the MBO in a js file

    Hi Experts,
        I got a table from oracle db, and i have deployed it and MBO is generated.
    That table contains the login credentials which i am giving in the login page.
          I have created a login page with user id and password when i am trying to login by using the credentials which i have registered earlier the credentials are being checked in the table and it should return me yes or no if yes i have to move to next screen if no i should display some alert . My problem is that i am not knowing how to get that verified credentials and display them in my code. I am writing this line of code in java script and i am unable to know, how to handle the data after being checked from the MBO .. please help me out of this ..

    Hi Lokesh,
    You can write an object query for checking the credentials details.
    Right click mbo>Attributes>Object query>Add
    Add 2 parameters, give some name like usernameParam and passwordParam
    Map these parameters to respective fields like username and password(from MBO)
    Generate object query
         e.g. select x.username, y.password from ABC where x.username=:usernameParam and      y.password=:passwordParam
    select Return type"as single object""
    (assuming username and password are the parameters defined in the mbo ABC.)
    redeploy mbo
    call this object query to Login button and do all required mappings
    For verification, if details are/not available in backend
    You have to write some piece of code in customBeforeNavigateForward
    e.g.
    hwc.customBeforeNavigateForward = function(screenKey, destScreenKey) {
    if(destScreenKey="Employee" && screenKey=="Start"){
    //Here Employee is the MBO name
    alert("test");
    var message = getCurrentMessageValueCollection();
    alert("test1");
    var itemList = message.getData("Employee");
    alert("test2");
    var items = itemList.getValue();
    var noOfItems = items.length;
    alert("noOfItems="+noOfItems);
    if(noOfItems==0){
    alert("Invalid input");
    return false;
    Rgrds,
    Jitendra

  • How to receive an event in the client bean from the server bean?

    when i click the button1 in the server bean,the textfield1 in client bean should set to 1.how to do that in java application?
    thx

    can you give me an example code about how to add this action listener?
    i uses the following code,but it doesn't work.
    the client bean can't capture the sendMyEventObject method!!
    help!!!!
    private void jSendInterestRate_actionPerformed(ActionEvent e)
    if (ChcekDoubleValue(jInterestRate) && ChcekDoubleValue(jPrincipal) && ChcekDoubleValue(jYear))
    interestRate = Double.parseDouble(jInterestRate.getText());
    principal = Double.parseDouble(jPrincipal.getText());
    year = Integer.parseInt(jYear.getText());
    sendMyEventObject(interestRate,principal,year);
    }

  • How to get Fennec full screen from the android project's source code?

    Hi,
    First and foremost, I'm sure this was not the proper category to post that question but I couldn't really figure out a better one. Hopefully you'll forward it to a better place.
    We would like to take the advantages of Fennec with out HTML5 framework by wrapping it into a somewhat WebView like you can do on Android. The native implementation of the webview on Android turns out to be very disappointing so far whereas Fennec runs seamlessly.
    Could you recommend us any tips to do that properly from the Fennec's Android app project?
    Basically we just want to be able to call sort of a new FennecWebView() class instance in our code (instead of the formerly new WebView() ) that will run full-screen and won't call any further things such as, bookmark manager, setting. We just want to scale this down to the very strict minimum in order to run our Canvas framework in a native app thanks to the Fennec's engine.
    Thank you very much!
    BR,
    Armand

    I've seen some interest in this from others. It was suggested that they build a web app manifest.
    https://developer.mozilla.org/en-US/docs/Apps/Getting_Started
    https://hacks.mozilla.org/2013/01/join-us-for-firefox-os-app-days/

  • Mapviewer displaying maps differently from the client than from the server

    Can anyone explain to me why this is happening. I have been deploying my java server page to the server, and the way it works is to have multiple base routes which are not originally shown, but the user can 'check' them and they will display. On the server this works as one would expect, but on the client
    I originally couldn't get this to work through Jdeveloper, but now it works -- that's another story :(
    all of my base maps are displayed when the map first comes up. I don't want this to occur because it takes too long. Anyway, does anyone know why the map is working different from the client than it does when I deploy it to the server? Here is the significant code:
    var basemap1 = new MVBaseMap("ds_prod.prod_rdlg_qry");
    var basemap2 = new MVBaseMap("ds_prod.interstate", "", true);
    basemap2.setTransparent(true);
    var basemap3 = new MVBaseMap("ds_prod.primary", "", true);
    basemap3.setTransparent(true);
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addBaseMapLayer(basemap1);
    mapview.addBaseMapLayer(basemap2);
    mapview.addBaseMapLayer(basemap3);
    basemap1.setVisible (true);
    basemap2.setVisible (false);
    basemap3.setVisible (false);
    Any suggestions would be appreciated. Thanks.

    Hi
    Whitch version of mapviewer are you using? (MVBaseMap/addBaseMapLayer is for older versions, and in newer there is MVMapTileLayer/addMapTileLayer)
    I had similar difficulties displaying multiple tile layers in application with mapviewer ver. B080618. (not sute, may be in newer versions this works different)
    When adding all tile layers initially and then setting theig Visible properties, browser fetches from server data for ALL the layers (even if they were set to visible -> false)
    the workaround was to add aditional layers ony when this is needed.
    Michael

  • How to get error information back from Office Web Apps server?

    I'm developing a web application with an embedded Word iframe that interfaces with an Office Web Apps server; I am trying to implement the MS-FSSHTTPB protocol for my WOPI server.
    More details here. When I send a bad response back to the OWA server it stops making requests to the WOPI server and sends the following error message back to the browser client: "Sorry, there was a problem and we can't open this document. If this
    happens again, try opening the document in Microsoft Word."
    Is there a way I can get additional information about what went wrong so that I can correct it?

    Yes, this is closely related to SharePoint.
    I'm trying to embed a Word editor in our web app. The Word iframe is served from the OWA server. It typically communicates with a SharePoint server to receive information about the document its trying to display.
    I'm trying to implement the SharePoint portion. The servers communicate via the MS-FSSHTTPB protocol (among others) which I'm struggling to implement. When I send a response to the OWA server that it doesn't like then it stops replying. I'm wondering how
    I can retrieve the exact error the occurred.
    I believe I originally posted this question to Open Specifications  >  SharePoint Server Protocols.

  • How to get your $200 back from the price drop.

    Many of you likely paid with a credit card and many of the credit card companies have a price protection policy. I know american express and some mastercards do. Basically if you buy a product and the price goes down within 60 or 90 days depending on the credit card company, you get back the price difference. I know for mastercard they will refund up to $250. Try that out.

    I just got off the phone with my credit card company (ATT Universal) and they have confirmed that they do indeed honor "retail purchase protection." If you have purchased an item and the merchant drops the price within 60 days, then you can obtain a refund of up to $250.
    To all of us jilted Apple-lovers, I would suggest this course of action to resolve if possible. It's one thing to have a lone customer whining to an assistant manager of an Apple store, it's another thing to have a room full of lawyers for credit card companies in an Apple board room asking Apple how it plans to resolve the large numbers of refunds that the credit card companies were forced to pay out.
    Good luck, all!

  • How to get rid of stuff from the hard drive

    Our family iMac, with a 500GB hard drive, has only 5 GB of space left. Is there a quick, efficient way to get rid of duplicate stuff, large files, unused programs that just take up space?

    take a look @ [WhatSize|http://www.id-design.com/software/whatsize>.
    also, here's some reads to peruse:
    Your Mac needs adequate hard drive space to operate normally. How full can a drive be before it's too full? There is no hard and fast rule that says “X” amount or “%” of free drive space is needed. A low amount of RAM requires more drive space for Virtual Memory’s swap files.
    Problems from insufficient RAM and free hard disk space are discussed in this link
    http://www.thexlab.com/faqs/lackofram.html
    Here’s some general guidelines for minimum hard drive free space:
    1. As a general rule, your available space should be 5GB as an absolute minimum as it generally requires that much free space to perform an Archive and Install of Mac OS X and still preserve some free space for VM swap files.
    2. Some say that your hard drive should have at least 5% of it's capacity available for use. Still others say 10% to 15%. If you routinely process complex graphics and videos, even more space is required.
    Look at these links about freeing up more space.
    Where did my disk space go?
    _*http://www.macfixitforums.com/showflat.php?Cat=&Board=Forum38&Number=770243*_
    Download & use WhatSize described in this link or Disk Inventory X @ _*http://www.derlien.com/*_
    Freeing space on your Mac OS X startup disk
    _*http://www.thexlab.com/faqs/freeingspace.html*_
    Amazing Disappearing Drive Space
    _*http://www.pinkmutant.com/articles/TigerMisc.html*_
    Increase HD Free Space
    _*http://macosx.com/forums/howto-faqs/275191-how-easily-increase-hd-free-space-lap top.html*_
    How to free up my disk space
    http://www.macmaps.com/diskfull.html
    JGG

Maybe you are looking for

  • Usage time is greatly inflated

    I have my phone set to auto-lock with a passcode after one minute and my email checking set to "manual". After fully charging my phone overnight my Usage and Standby counters were reset to "0". I briefly checked my numbers before leaving the house an

  • Report generation failed

    when i try to generate the report using the Oracle BIP 11g services from Jdeveloper it is failing. I have set the DynamicDatasource in the report request, following are the error log [2012-03-20T11:05:12.720+05:30] [bi_server1] [WARNING] [] [oracle.x

  • Workitem forwarding

    Hi All, I searched threads regarding workitem forwarding, but cldnt get one related to my issue. This WF is related to archiving invoice. On scanning of invoice, WF triggers, sends workitem to AP, AP executes workitem, screen is in edit mode. Due to

  • Downloads and Podcasts count numbers/fields are blank

    The number field that is next to podcasts (the number of unplayed episodes in library) is blank... just an empty oval. The same thing is true of my Downloads count. If I were to open the Podcasts or Download windows, everything shows up, but under th

  • Can't use Kuler on Illustrator CC

    I've signed an annual Adobe CC and I have a valid Adobe ID. But I can't use Kuler on Illustrator CC and I'm receiving a message that there's no valid Adobe ID saved. How can I use Kuler again?