Ask for Username and Password while Opening an Applet

Can we code such a way that , While we open an Applet , It should ask for User and password and upon sucessful validation , the Main applet must be loaded !
Any Suggestions Please !
Thanks .....

public class FirstApplet extends Applet {
     private boolean authentified = false;
     private SecondApplet applet = null;
     public void init() {
          System.out.println("FirstApplet: init()");
          authentified=authentificate();
     public void start() {
          System.out.println("FirstApplet: start() "+authentified);
          if (authentified==true) {
               applet=new SecondApplet();
               applet.init();
               applet.start();
     public void stop() {
          System.out.println("FirstApplet: stop()");
          if (applet!=null) applet.stop();
     public void destroy() {
          System.out.println("FirstApplet: destroy()");
          if (applet!=null) applet.destroy();
     private boolean authentificate() {
          System.out.println("FirstApplet: authentificate()");
          // ask the user for username and password
          // check the password, if it's ok, return true
          // if it's not okay, return false
          // how to do a login window, see
          // http://www.codeguru.com/java/articles/510.shtml
          return true;
}

Similar Messages

  • Word 2010 prompts for username and password when opening a document on trusted website

    Hi Guys,
    We have a website (not sure if the site is a sharepoint site) on our trusted domain that asked for username and password when trying to access it. I added the site to our trusted sites zone and this resolved the issue however when I try to open word documents
    I get prompted for usernames and password again if I cancel the credentials box the document opens with no issues. 
    Below is some of the steps i have taken
    - Tried opening other non office documents (e.g. PDF, JPEG) and they open with no issues
    - Tried to opening the word documents with a system that only had word pad install and not Office 2010 and the documents open with no issues so it looks like it's an office 2010 problem 
    Can you please advise how I can resolve this issue and if this is a client issue or an issue on the web server thanks

    Hi,
    This issue is caused by the Office suit itself. When Internet Explorer opens an Office document, the appropriate Office application is started with the path of the document. The Office application then tries to access the document directly from
    the server. This differs from other browsers and other file types. Most browsers download the file and call the application to open the file from the local cache. However, when this occurs, if the opened file is changed and saved,
    the changes are only made to the local copy and not to the server copy.
    To establish the richest experience possible, the first thing that the Office application does is communicate with the server to determine the server type and what web authoring protocol is available. The application does this by making
    an OPTIONS request directly to the server.
    As a new process accessing the server, the Office application is required to renegotiate authentication. This method is more secure than a method in which the new process uses an existing authentication that was established by the browser. 
    Please try the following methods:
    An alternative with full functionality but with a calculated risk
    Client approaches that can reduce the impact
    Alternative configurations when the web server does not support DAV or reduced functionality is acceptable
    For more detail information, please refer to the following link:
    http://support.microsoft.com/kb/2019105/en-us
    Thanks
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Sharepoint2013 Stop asking for UserName and Password

    Hi,
    I have Installed New sharePoint2013 Server , I face Issue that Sharepoint Site keep asking for UserName and Password aeach Time.
    I set as  windows authentication in both IIS and Central Administration ,
    and I configure The IE and I set Automatic Login with Current Username And Password and I put it in Trusted site  and nothing  change.
    I also have sharepoint 2010 server and when I configure it like above it
    stopped ask me for UserName and Password ,
    Can any one help me what maybe  the problem in SharePoint server2013.
    thank you,,,

    Hi,
    Try following these steps:
    Adding the site to Local Intranet Zone: 
    Navigate to Tools > Internet Options
    Under Security tab, navigate to Local Intranet > Sites > Advanced. Enter the URL of your SharePoint site and click Add. Uncheck theRequire server
    verification (https:) for all sites in this zone box and click Close
    Adding the entry to the Credentials Manager: 
    Go to Start > Run and type in control keymgr.dll to open the Windows key manager.
    Alternatevily: navigate to Contorl Panel > User Accounts > Manager Windows Credentials
    Select Add a generic credential
    Add your SharePoint site URL, login and password to the corresponding fields. If this entry already exists, edit it to have your login credentials. 
    Reboot the computer.
    If you are missing the Add button, you may want to modify Windows Registry to be able to save the password.
    Note: for editing Windows Registry, administrator rights are required. Editing Windows Registry is not safe and you will perform it at your own risk.
    In Windows, go to Start > Run and enter regedit.
    Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\.
    Find the DisableDomainCreds entry. A value of 1 (enabled) will prevent you from saving new credentials. 
    Change the value to 0 and reboot. Now you should have the Add button available. Note that 0 is the default value.
    Also check the LmCompatibilityLevel entry. It should be set to 3, which is the default value. If you have another value, change it to 3. If it does not
    work with 3, then also try it with 2.
    Reboot the computer to apply changes.
    Ref: http://hosting.intermedia.net/support/kb/?id=1668
    If this helped you resolve your issue, please mark it Answered

  • Why asking for username and password once entered

    Hi!
    While configuring a new account in Outlook 2010 from Internet it asks for username and password one more time even after entering it once at the beginning of the account setup.
    Can anybody provide some details. Can't the automatic setup take the entered credentials once for all?
    Exchange 2010 and 2013
    Thanks.

    Hi,
    Based on my experience, the credential issue can be caused by the connectivity issue.
    Thus, let’s check if Outlook Anywhere connection is well by using ExRCA:
    https://testconnectivity.microsoft.com/
    Thanks,
    Angela Shi
    TechNet Community Support

  • New Imac. I get rid off login password from security and account and restart. Now it asks for username and password and it's not acepting anything. Any ideas?

    New Imac. I get rid off login password from security and accounts and restart. Now it asks for username and password and it's not acepting anything. Any ideas?

    First, reset your password as follows.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select  ▹ Restart from the menu bar.
    You should now be able to log in with the new password, but you won't be able to unlock the Keychain. If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it. You’ll need to reset your keychain in the preferences of the Keychain Access application.
    If you're being prompted to authenticate when making changes to files inside your home folder, continue as follows.
    Back up all data now.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:20 ~ $_ ; chmod -R -N ~ $_ 2> /dev/null
    Be sure to select the whole line by triple-clicking anywhere in it. You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. If you don’t have a login password, you’ll need to set one before you can run the command.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select Utilities ▹ Terminal from the menu bar. A text window opens.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens. You’re not going to reset a password.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • Why it is keep asking for Username and Password but i didn't use any username and password with my database.

    Why it is keep asking for Username and Password but i didn't use any username and password with my database. Please help me i m very frustrated right now please help anybody. I m new in this.,

    Hi,
    Please check below threads:
    Crystal Report Layout asking for Login Info
    SAP B1 ask for credentials to print or to preview Crystal Reports report

  • RE1000 asks for username and password

    I have the RE1000 installed as extender for my WRT110 router. I was told by Linksys live chat tech that this would be suitable for our home network. When in the family room or on patio (where I have weak WiFi usually), the Extender shows on my iPad in the list of available WIFI and has excellent icon (the router usually has one or two bars and goes in and out).
    When I try to access the Extender on my iPad, it asks for username and password but will not take it. Should I run setup again or what? 
    Solved!
    Go to Solution.

    in setting up the range extender, it will give you the option to connect to your network. so essentially, you will not have to define/ specify the settings manually. the purpose of the range extender is to extend the signal of the main network, not create a separate network of its own.
    i suggest that you RESET the range extender and run the setup wizard again. make sure to connect the device to your network. once the devices have synced up, you will be able to fully utilize this device.

  • ITunes asking for username and password on XP

    iTunes asking for username and password on XP

    hi all,
    this was due to the password sitting at database level i made it to sec_case_sensitive_logon=FALSE.
    it worked thanks...

  • Problem with iWeb asking for username and password to access my public site

    Today for some reason anyone trying to access my site is being asked for username and password. I have made no changes that would require a password. My site has always been public.

    I am having the same problems. My site is public, I checked the settings on the public folder on MobileMe to ensure that it was public and did not require password protection either. But for some odd reason, even though I didn't change anything, my site's pages seem to require a user name and password to get into them. If one continues to click cancel, the page continues to load.
    This does not happen every single time, but it happens more often than not. I have tried this with my iMac, Macbook, as well as my iPod Touch, and I get this on all machines. My brother has tried logging in from another location using his Macbook Pro, and he gets the password prompt as well.
    I tried turning on password protection to the site and uploading the changes, then disabling password protection and reupping the changes once again. I've tried uploading entire site, instead of just changes, but the problem continues to persist. I definitely need this issue solved since this site is important to me.
    The site url is: http://www.globalwinetour.com
    Does anyone have any suggestions to rectify this, or does anyone have any idea what is causing it? Am I missing something here? Am I doing something wrong? Please help me out!
    Many thanks in advance!

  • When using SSL Word Files ask for username and password.

    I have SharePoint Foundation 2013 setup and it works great.  I need to allow users access when they are not connected to our local network, so for testing purposes I added a domain signed certificate and assigned it to IIS on 443. Internally when
    I try to access the site IE now ask me for a username and password and when I open a word file Word then ask me for a username password again. If it didn't do it in http why is it happening with https and how can I fix it?  Externally I know users will
    have to login but they should have to only login in once right?

    After doing some more research it seems that it is just not possible to use Windows authentication along with FQDN without being prompted for username and password in SharePoint.  Can anyone confirm this? I am sorry what a bad design of a program. 
    Did anyone think at Microsoft that organizations might want employees to work from outside of their network in the year 2013 using the username and passwords they already have.

  • Outlook asking for username and password, but only for some users

    Hello, I'm
    in an Exchange Server 2013 client
    environment, two CAS servers
    and two Mailbox.
    Some users are having trouble in Outlook 2007
    and 2012, which is directly
    requesting the user name and password, not all,
    just some.
    The Active Directory is ok,
    DNS and also own Exchange
    servers apparently do not see errors.
    Has anyone here ever experienced this?
    How can I solve this problem?
    As this happens only to some users
    and the vast majority have no problems, so
    difficult to find the cause.
    Thank you!
    Ivanildo Teixeira Galvão

    Hi Ivanildo,
    From your description, only some users have an issue that Outlook prompts for username and password. In your case, I recommend you compare the normal and problematic Outlook settings. Here is the Outlook settings in my environment for your reference:
    1. "Always prompt for logon credentials" isn't checked.
    2. Logon network security using Negotiate Authentication.
    3. "Connect to Microsoft Exchange using HTTP" is checked.
    4. Use the NTLM Authentication when connecting to my proxy server for Exchange.
    Hope this can be helpful to you.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • Firefox with proxy configured keeps on asking for username and password

    This was asked a while ago, but no solution every posted.
    I use FF at work with a proxy. When I upgraded to FF28, an "old" problem came back - FF constantly pops up a window saying the Proxy is asking for a username and password. I did nit have this problem with the previous version of FF. It doesn't seem to remember the password, and will ask several times for the same page. Has gotten so disruptive I've moved over to Chrome for now.
    Thoughts on why this issue started again with FF28? Thoughts on how I can get it to stop and make the browser usable again?

    See:
    * https://support.mozilla.org/kb/Firefox+asks+for+user+name+and+password+on+internal+sites
    * https://developer.mozilla.org/En/Integrated_Authentication
    * https://addons.mozilla.org/firefox/addon/integrated-auth-for-firefox/

  • Outlook 2007 keeps asking for username and password

    We have a new exchange 2007 SP1 server but occasionally the outlook clients will ask for the username and password.
    Is this a bug or does anyone have a fix?

    Hi Edwin,
    I have an SBS 2008 install with a similar problem.  Using a GoDaddy Cert.  Worked fine prior to me running an update to the server.  So I think we are getting some where here.
    Symptoms
    Win Server 2008 (Or SBS 2008)
    Exchange 2007
    Outlook Anywhere Enabled (RPC-HTTP)
    SSL Cert Signed by GoDaddy
    Outlook 2007 Clients
    Outlook 2007 Clients show Login prompt to the 'remote.example.com' cancel or disable keeps poping it up after some time.
    RPC-DIAG shows no problems
    Client not configured for RPC-HTTPs
    Outlook 2003 Clients unaffected
    Things I have tried:
    Basic  & Windows Authentication on the EWS Virtual Directory in IIS7 on Exchange 07 (SBS 08) box - No Joy
    New Profile on Outlook 2007 win XP SP3 - No Joy
    New Profile on Outlook 2003 win XP SP3 - Works, but rest of office running Outlook 2007
    Disabling Outlook Anywhere  - No Joy
    Visiting https://remote.example.com on affected Outlook 2007 win XP SP3 Machine - No Error Pages, or dialog boxes, Internet Explorer sees it as a valid Cert
    Any KB Articles, or notices?? I have two end-user with a possible third (Business owner) who are getting cranky. :(
    EDIT: Found a fix for me potentially via - http://social.technet.microsoft.com/Forums/en-US/exchangesvrdeploy/thread/c1e72d2a-d360-4ff0-b2f5-1a9ae149df18 and http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=microsoft.public.exchange.admin&mid=00d4a681-f588-4eed-b4f8-5c3645e7376c&sloc=en-us
    [email protected]
    I had an issue similar to this. Win2k3 Ex07. All of my Outlook 2007
    users were getting prompted over and over for the username and
    password. It wasn't checking the certificate that they had installed
    via internet explorer. To fix the problem, I opened IIS on the
    Exchange server and checked the following directories under the
    default website (the root site(default web site), oab, autodiscover).
    Under the directory security tab, click Edit in the Secure
    Communications section. I had the require SSL checked and the 128bit
    encryption, but under Client Certificates, it was set to ignore. Once
    I changed that to Accept for each of the folders, stopped and started
    IIS, I stopped being prompted all the time for credentials. Hopefully
    this will help someone in the future.
    Just confirmed fixed for client!!!
    -IL

  • HP1102W, XP, asking for username and password

    I'm setting up my wireless printer, and it is asking for a username and password?
    The wireless printer is set up and shows a status of online when I look at the printer in the browser.  I recently reinstalled windows and everything on one PC. I am trying to set up the wireless printer to print from the PC that was recently reimaged.  It is an HP 1102W. I click Add a Printer (next), A network printer (next), Browse for a printer. The printer shows up in my list of devices. But when I click on it, I am asked for a username and password for the PC that this printer is connected to by USB cable. I do not know what username and password it is asking for.
    It does not seem to be the printer username and password it is looking for. It is looking for the username and password for the PC that the printer is hooked up to (by USB cable.). The box that comes up is a windows box and says "Connecting to SHARONS-PC" and then asks for the username and password. There is no username and password on this PC.

    I finally figured it out. Even though this is a wireless network printer, it is not added by clicking on the add a network printer. Somehow, Microsoft considers this a local printer (attached to this computer, even though it is not attached to the computer or a local printer).
    To add:
    Click Add a printer (next), select Local Printer (attached to this computer) (next), The wizard was unable to find a plug and play printer (next), select Create a new port. From the drop down select Standard TCP/IP port (next) (next), put in the printer IP address from the configuration page of the printer. That should pre-fill the port name also (next). That should add the wireless network printer.

  • Proxy Server asking for username and password almost 6 times for every page I load, but the same doesn't happen with other browsers like chrome

    The same question keeps popping up again and again "The proxy moz-proxy://proxy.iitm.ac.in:3128 is requesting a username and password. The site says: "moz-proxy://proxy.iitm.ac.in:3128""
    Even after i give the right details, it asks me like 5 more times before it completely loads the page. Some times it happens only 2 times.
    With other browsers like chrome, it asks only in the beginning. it doesn't occur after that.
    This started occurring only recently. i upgraded to firefox 9.0 and it functioned properly for more than 12 hours before it started occuring. i tried downgrading back to 8.0.1 but the problem still continued.

    i'm afraid i need to use proxy settings to connect to internet. The settings are all fine because it used to work properly all this time. i specify the proxy address and the port, which is correct, i am very confident. it is so because the page actually loads on firefox, but not before it asks for my user name and password for it a lot of times, and for every page. for other browsers, it asks only in the beginning, that is, when i start the browser.
    i've put three pics here. under the first two settings, the third image showing the user name and password thingy popping up. this happens a lot of times for every page.

Maybe you are looking for

  • Solution Manager 4.0 client copy

    Hi all, We have installed solution manager 4.0 SP 12. We have also done a client copy from 001 to 100 in order to work exclusively in the client 100. I have also changed the client reference in RSADMINA table and the UME from 001 to 100. Finally, whe

  • I am getting "Event name is not defined" in VC

    Hi, I am using NWDS & VC 7.2 and trying to deploy my first sample application. When I click the "Validate" button in "Deploy" option, I am getting the error "Event name is not defined". Where can I see the detailed error log to understand what is the

  • Itunes is not syncing all songs in playlists to iphone

    i have multiple playlists with 70+ songs in them, however after phone is synced, only between 15-22 songs are in the corresponding playlists on my iphone. just need to find out if anyone is having the same problem since updating to itunes 10.5, and h

  • How to decrease decimal places in invoices

    Good day, How do i drecrease decimal places in invoices. For example , i have set the decimal places to 4 for costing purposes but i want the final invoice to be 2 decimal places for display purposes. i have tried decreasing the decimals using the de

  • EP iview integration  with Hummingbird workflow system(iviews)

    Hi all, Kindly let me know if this is the correct forum to discuss this in. We require to have a sortf ot integration/control transfer to the hummingbird workflow system, after triggering a workflow in the SAP EP system. So the triggering takes place