Results 1 to 2 of 2

Thread: What is the relationship of UserDetail and Authentication

  1. #1

    Default What is the relationship of UserDetail and Authentication

    According to the java doc, the UserDetail holds information and later on to be stored inside the Authentication.
    I am using my own AuthenticationDao impl, and it has a method loadxxx to return a Usertail object. If I have another object I need to use, how would I attack to the UserDetail so later I can get it from Authentication?

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    UserDetails is an interface.

    Your AuthenticationDao can return any concrete implementation of UserDetails that you like. We suggest returning the included User, or a subclass, but there is nothing wrong with returning your own implementation instead.

Similar Threads

  1. single authentication for webapp and EJBs
    By kuzman in forum Security
    Replies: 1
    Last Post: Oct 10th, 2005, 05:44 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
  •