How to Store UserID and Password on Server

Hi,
I m using Applet-Servlet Communication. When my applet calls Servlet it makes database connection and retruns Object to Applet. Can ne body pls. tell me instead of hardcoding database userid and password in servlet, what is a most convinient way to a pass these parameters to servlet. Properties files are one of the way, but is it secure and suaitable on the Web? Is there ne other funda for this?
Thanx in advance
Sandeep

No, I don't think the use of properties file is a suitable
approach.
You can use JDBC-realm .Accept the username & password from user,pass these values to the servlet and then validate this against the names stored in the database.

Similar Messages

  • How to Hide userid and password in the address bar

    Hello Dears
    I am using OAS 10g and calling a form from my web portal designed in ASP.Net. I pass userid and password to OAS as parameters and form is accessed but the problem is that userid and password are displayed in the address bar. How can I hide this info to secure my application.
    Note: This is a multi-user environment.
    Please guide. thanks
    Inayat Qazi

    On your reports server in the reports\conf directory there is a file called cgicmd.dat
    This file allows you to create a key that will be replaced with the entry from this file. You can put your userid and password parameters in here and thus remove them from the address line.
    Key value entries look like this in the file:
    examplekey: userid="scott/tiger@myoracleinstance" %*
    your url would then look like this:
    http://myreportsserver/servlet/rwservlet?examplekey&report=myreport.rdf&destype=cache

  • How to encrypt UserID and Password in HTTP url

    Hello experts,
         We want to encrypt UserID and Password which has used in http URL in SAP PI 7.1.
    As we have used SOAP adapter with Transport Protocol HTTP for sender server.
    Kindly help us on it.
    Regards,
    Poonam.

    Hi,
    please go through below blog,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b04408cc-f10e-2c10-b5b7-af11026b2393?QuickLink=index&overridelayout=true
    please go through below threads,
    SOAP Envelope with user id password
    Soap ---to ----file scenario
    regards,
    ganesh.

  • How to authenticate userid and password of b2b user in a b2c portal

    I am having a reqirement in B2C web portal , where in i have to create two input text fields which will accept userid and password ( the userid and password will be of b2b users)and button to logon and if i click on the logon button, it should take into b2b web portal. Is it possible? if possible please help me in this issue.
    Please get back to me if i am not clear in my requirement.
    Thanks a lot in advance!
    lakshman reddy G.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Oct 6, 2008 6:07 PM

    To get an idea check these links.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/aaa1a890-0201-0010-eb93-ae3d2bb74a78
    BSP/HowTo - Customizing the design of System Logon page in NetWeaver '04
    -Aman

  • How to store name and password at client side.

    I have an applet-based application; I want to save name and password when user logs in first time. Next time, when the same user request for the page, it should pick up this information locally from somewhere rather asking user to enter again.
    Some one told me that I could use cookie. Can anyone confirm or give me an idea what to use.
    Could you, please, direct me to some sample code?
    Thanks

    Hi
    Try google. Found this http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/cookie_support.html by using google.....search: using cookies,applets

  • How to send userid and password to yahoo website

    Hi All,
    I am working on a project(single sign on) and want to open a website (say yahoo). how can i open yahoo website in Browser from java code. which classes will i have to use?? Also , how can i provide username and paswrd in their respective fields (login, passwd) in the webpage, so that this programs automatically helps to directly access the inbox?
    thanks in advance.

    Prepare post data,
    String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
    data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");Creat connection,
    URL url = new URL("http://hostname/");
    URLConnection conn = url.openConnection();
    conn.setDoOutput(true);Send data
    OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
    wr.write(data);
    wr.flush();If you need to get the response do the following
    BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
            String line;
            while ((line = rd.readLine()) != null) {
                // Process line...
            wr.close();
            rd.close();

  • How to pass username and password while invoking a web service through wsdl

    Hello All,
    i am calling a web service through wsdl, but it is giving error 401. i want to know how to pass userid and password when i am invoking webservice?
    i am using NetBeans 6.1.
    i did following thing:
    First i created one web application, then i right clicked on project new->web service client, and gave the url for my wsdl.
    after that i create one main class and try to call my required operation by that wsdl.
    Thanks in advance

    Thanks dumchikov, i tried the same thing what ever you told but there is no option for security.
    when i right clicked on web service reference its open 1 window which have 2 tab one is quality of service and second is wsdl customization, then i clicked on wsdl customization. which contain Global Customization, Port Types, Port Type Operations, Port Type Faults, Binding, Binding Operations, Services, Ports and External Binding Files. it don't have security option.

  • How can I specify SMTP Email Server userID and password when using Email VIs?

    How can I specify SMTP Email Server userID and password when using Email VIs included in Internet Toolkit?

    Hi,
    A similar question was posted on Discussion Forums soem time back. Please see the link below.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000C7B00000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    You would find the last post in the above thread quite useful where it has a link to OpenG code. I am also copying that link for your reference.
    http://www.openg.org/tiki/tiki-index.php?page=OpenG+Internet+Connectivity+Tools
    Please feel free to respond to this post with any questions/comments you may have.
    Regards,
    Ankita A.
    National Instruments

  • How do I enter UserID and password to access my pasworded space on ISP server

    I need to view and upload files to my web page space on my ISP server. I can connect using "ftp.(ISP).com but must enter my UserID and password to get to my files. How do I do this in Firefox?

    You can prefix the URL with the username to force Firefox to display a connection pop-up.
    *http://[email protected]/
    *ftp://[email protected]/

  • How to use the userid and password infor from Oracle DB in BO

    Out client has the userid and passwords(encrypted) infomration stored in oracle table.
    Is it possible to import this useid and password information into BO .And use the same userid and password from Oracle table for its login authentication and for data security...?
    In other words can the userid/pwd info from Oracle Profile Table imported and re-used in BO Enterprise Edition.

    If the users/pw are in an Oracle LDAP v3 compliant server then you can import them via LDAP plugin, else you would need to bring them in an enterprise users via script. The Import wizard can do this and the SDK (see the SDK forums for more info on how)
    Maintaining the passwords would be difficult unless you are using and industry standard directory like LDAP.
    Regards,
    Tim

  • How to recover the userid and password with out losing data in c drive

    Hi, i have ibm server and installed windows server 2008 r2 standard. i forgot the userid and password for login so i used the password crack tool after that try to login but it shows " The login credentials are in correct" so how to login to
    system and get the c drive data safely with out loose.

    Hi,
    According to your description, I assume you have forgotten the administrator’s password. If you have another administrator account, you can use it to reset the password.
    If you don’t have another administrator account, then there is no Microsoft recommended way to reset passwords due to security considerations.
    Here are some similar threads below I suggest you refer to:
    Forgot Password for Windows Server 2008 R2
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/cc3a6a12-66e9-4a06-97fd-2a5c89d627bc/forgot-password-for-windows-server-2008-r2?forum=winservergen
    forgot windows server 2008 r2 admin password
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/ab435f7e-3927-4fda-a991-80f42e18089b/forgot-windows-server-2008-r2-admin-password?forum=winservergen
    Best Regards,
    Amy Wang

  • Hi, how to develop application , matching of userid and password to backend

    hi masters ,
                  , user  have to give userid and password of back end sap system  to see particular report. i mean there is a first view ( this first view muust not be first screen of portal ) with userid and password fields . after gave his id and password he can go to second view to see the particualr details .please suggest me about how to do custom bapi code and , in also  webdynpro java  how to develop .
               i know about sso. in this concept i have to use through webdynpro java only. no need of sso concept here .
              after giving the  userid and password , those details must be match with  backend sap database.if no  one of userid and passwrod field  is  matching it has to show some error message. and in password field must be in encrypted letters .

    hi surya,
    Use JCO api to create connection to the backend.
    [JCO tutorial|http://www.apentia-forum.de/viewtopic.php?t=1962&sid=9ac1506bdb153c14edaf891300bfde25]
    On the webdynpro screen you can ask users to enter login id and password. Use this information to create connection to backend using JCO.
    Hope this helps!
    Monalisa

  • How do pass the UserID and Password in the SOAP header for web services

    I am encountering issues trying to pass the userid and password in the SOAP header when consuming a 3rd party web service.  Rostewitz posted something similiar but I don't know how to type iv_xml.  Any help would be greatly appreciated.
    Thank you,
    jpina

    It helps to post a link to a thread when you refer to it.  If you are trying to implement that solution though, you can look at the parameter of the corresponding method being called.  The parameter has type 'SIMPLE' which means that it is compatible with all of the predefined elementary ABAP types.  In this case, you should use 'STRING'.

  • How to create a desktop shortcut that includes UserID and Password

    I would like to know how to add my User ID and Password to allow seamless login to a site by using the userid and password
    I have an existing shortcut and would like FF to open and login to the site with one "double-click"
    I do appreciate that it is a security risk to do this, but the information on this site poses no risk for me if someone that has authorized access to my personal computer, click on this shortcut.
    I will appreciate any help to assist me in doing this.
    Kind Regards
    Frits

    iamjayakumars,
    Thanks for the advice, but the website does not give the option to save the password, hence my question
    Any other way I can perhaps in the properties specify that?

  • When starting webcenter domain, how not to enter userid and password?

    Dear All,
    I followed this link http://yonaweb.be/start_webcenter_domain in installing my webcenter domain and I was successful in setting my own webcenter and busy exploring the webcenter spaces.
    My only concern is that when I am starting my webcenter domain it always ask for user id and password for the weblogic.
    I created a small batchfile for this.
    call C:\Oracle\Middleware\user_projects\domains\webcenter_domain\bin\startManagedWebLogic.cmd WC_Spaces http://localhost:7001but how can I get away from typing the user id and password?
    Thanks

    >
    otherwise,you can specify the userid and password in boot properties file of your domain.
    \user_projects\domains\dryrun_domain\servers\AdminServer\security\boot.properties.
    # Generated by Configuration Wizard on Wed
    username={AES}dbjKVafUpVLPvTG04tGl12RJRCaYmU5dmv2Yw=
    password={AES}5WHBgndS2Fq2uoiIKKWI+rM2uwTPAYQ0I=
    replace the username and password with your credentials.There's a nice tutorial with screenshots describing how to do this here:
    http://st-curriculum.oracle.com/obe/fmw/wls/10g/r3/installconfig/enable_auto_login/boot_identity_file.htm#t4

Maybe you are looking for

  • How can i make my external hard drive be the scratch disk with 1 FW input?!

    Hello! I use firewire with my external HD AND my camera...however i only have one firewire input...i set my scratch disk for final cut to work with my external HD but when i am importing footage to my computer with my camcorder, i can not have my ext

  • Problem importing home video into iTunes for ipod touch

    I recorded my son's marching band concert on a Flip Video camera. I have tried importing it various ways (directly from flip, importing to windows media player, burning it to dvd, putting the file directly into the itunes library folder) but every ti

  • MRP - source list!!

    Hi All, I have two vendors in the source list. I have fixed the second vendor in the source list. When I run the MRP for the material the system assigns the first vendor to the PR and not the second vendor which is fixed!! This is something strange.

  • How to implement a subquery in CR2011 using native formulae?

    Hi All, If you look at the following SQL query, we want to have EquipRate based on Current Date for a EquipCode. How can I achieve the same result in Crystal reports designer using native formulas and functions. Thanks for your help. It will help us

  • Brightness issue (when unplugging/plugging battery cable)

    Hi, on my laptop, when unplugging the battery cable, the screen becomes darker. When plugging it back, the screen becomes brighter, but not as bright as from start. To restore my previous brightness, I need to use xbacklight (or xrandr --brightness).