RE: how o use stored password in a database which rampart should verify

2013-05-08 Thread Martin Gainty
The idea behind securing any site is prevent access from anyone who does not have access to the proper credentials to access the site you should store the salt in the database if and only if you want to provide dbas the ability to encrypt/decrypt your password otherwise store the salt elsewher

Re: org.apache.axis2.AxisFault: The security token could not be authenticated or authorized

2013-05-08 Thread robert lazarski
On Wed, May 8, 2013 at 3:06 AM, Tania Marinova wrote: > > I store the hashed password but also the salt in a separate column (because > I should hash then the plain text password with the same same hash) > IMHO you are not doing this correctly, you want to store the result of the salt + hash, ie

Re: org.apache.axis2.AxisFault: The security token could not be authenticated or authorized

2013-05-08 Thread Tania Marinova
yes, the null point exception is in these rows if((pwcb.getIdentifier().equals("bob")) && (passwordforchecking.equals(pasandsalt[0])) ) and                      passwordforchecking = hash(pwcb.getPassword(),Base64.decodeBase64(pasandsalt[1])); But the problem that dr

Re: org.apache.axis2.AxisFault: The security token could not be authenticated or authorized

2013-05-08 Thread robert lazarski
On Wed, May 8, 2013 at 8:34 AM, Tania Marinova wrote: > yes, the null point exception is in these rows > > if((pwcb.getIdentifier().equals("bob")) && > (passwordforchecking.equals(pasandsalt[0])) ) > > > and > > passwordforchecking = > hash(pwcb.getPassword(),Base64.

Re: org.apache.axis2.AxisFault: The security token could not be authenticated or authorized

2013-05-08 Thread Tania Marinova
First thank you robert for everything; You really help me a lot and I want to appologise for taking your time 2. I finally decided to try this-        if(pwcb.getPassword()==null)     {                 try {                     throw new Exception ("getPassw