1 Reply Latest reply on Jan 16, 2009 12:11 PM by nimo stephan

    Credentials and Identity identity.getCredentials

    nimo stephan Master

      Hello,


      I use Seam 2.1.1 and found out, that


      identity.getCredentials() (which I use before) are not longer available in Seam 2.1.1:



      identity.getCredentials().setUsername(this.getUsername());
      identity.getCredentials().setPassword(this.getPassword());




      Should I replace it with that (Is this the same?):



      credentials.setPassword(this.getPassword());
      credentials.setUsername(this.getUsername());



      Thanks in advance.


                     

        • 1. Re: Credentials and Identity identity.getCredentials
          nimo stephan Master

          What is the difference of that:


          version 1:
          credentials.setPassword(this.getPassword());
          credentials.setUsername(this.getUsername());
                   


          that:


          version 2:     
          identity.setPassword(this.getPassword());
          identity.setUsername(this.getUsername());


          and that, what was before SEAM 2.1.1:


          version 3:
          identity.getCredentials().setUsername(this.getUsername());
          identity.getCredentials().setPassword(this.getPassword());



          I have used version 3 before I upgraded SEAM and it worked.
          Now, what should I use? version 1 or version 2?