|
|
||||
Kumar Jayanti's Blog
«Client Side Certificate Handling in Secure Metro WebServices |
Main
| Custom Realms in GlassFish V3 »
Plain Text Username Password security with MetroPosted by kumarjayanti on November 25, 2008 at 01:10 AM | Comments (8)Although not considered very secure many users in the past have asked for it. With latest Metro builds we have made it possible to implement a webservice secured by plain-text username and password. The NetBeans mechanism which metro supports allows plain-text username and password over SSL. So i took that as a starting point to generate my WebService's WSIT configuration file and then modified the policy so that it accepts a plain-text username and password. Here is how the modified policy looks like :
Here is the Security Header of the message sent from the client to the service.
The client code invoking the webservice is as follows :
Anyone interested in getting the sample NetBeans Projects for the WebService and Client can access the file usernamepassword.zip here. The only additional step to run this on GlassFish is to create a File user on glassfish with username test and password test. Do not do a clean on the WebService project since i have actually hand modified the policy of the WebService (as stated above). Readers who wish to use Password Digest Authentication can take a look at : http://blogs.sun.com/ashutosh/entry/hash_password_support_and_token. Bookmark blog post: CommentsComments are listed in date ascending order (oldest first) | Post Comment
| ||||
|
|