Results 1 to 3 of 3
  1. #1
    somesh A is offline Member
    Join Date
    Apr 2009
    Posts
    5
    Rep Power
    0

    Default how to check authorisation

    In my servlet i need to get user's IPAddress,i've tried like this request.getRemoteUser(),but this is retuning null because of authorization problem.i don't know much about JAAS api.can anybody help me to solve my authorization problem ie how authorize user?

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    Authorization is typically something provided by your Web Application Server. The details will depend on your WAS and what access you have to authentication sources, such as an Active Directory server.

    I went through the pain of figuring out how Tomcat supports authentication, and it proved to be worth the effort. I ended using a home-grown user database that Tomcat's authorisation process accessed through UserPrincipal classes I created. Doing so was more secure, easier for the users, and it required no coding in the applications themselves.

  3. #3
    chizbox is offline Member
    Join Date
    Feb 2010
    Location
    Philippines
    Posts
    20
    Rep Power
    0

Similar Threads

  1. pls check it
    By aRTx in forum New To Java
    Replies: 0
    Last Post: 03-24-2009, 03:35 PM
  2. how to check java
    By funkygarzon in forum New To Java
    Replies: 10
    Last Post: 03-08-2009, 09:39 AM
  3. Check for null int
    By SnarfSnarf in forum New To Java
    Replies: 5
    Last Post: 01-31-2009, 12:12 AM
  4. Check box tag
    By elizaabru in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 08-26-2008, 03:37 PM
  5. spell check
    By kazitula in forum Java Applets
    Replies: 2
    Last Post: 12-20-2007, 12:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •