Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9322703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T04:09:34+00:00 2026-06-19T04:09:34+00:00

Due to the ambition to keep the web services as stateless as possible, I’ve

  • 0

Due to the ambition to keep the web services as stateless as possible, I’ve encountered a problem. I recently started to work with Axis2 and have tried to find a viable authentication solution. With authentication, I mean user/password. I am already using SSL in combination with WS-Policy to secure the procedure calls.

However, I found some of the samples bundled with Rampart 1.6.2 to be outdated, especially the policy example named “sample-tomcat” and their WSPasswordCallback handler (found here). WSPasswordCallback.USERNAME_TOKEN_UNKNOWN is deprecated in 1.6 and WSPasswordCallback.getPassword() always return null, even though a password is supplied within the UsernameToken element in the security headers of the message.

So. I’m unsure where to proceed to get a username/password check for every message. I am looking at these two options:

  1. Writing a module with a handler that performs username/password authentication.

  2. Giving up statelessness and writing a login-service returning tokens needed by all other services.

Are there other options?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T04:09:35+00:00Added an answer on June 19, 2026 at 4:09 am

    Actually, according to WSS4J developer Colm O Heigeartaigh, it was more strange before the change to work with validator interfaces, see his first, his second and his third blog posts about the new validator design in WSS4J 1.6.

    The WSPasswordCallback shouldn’t handle authentication, it is thought of as bad design and against separation of concerns, and therefor they (WSS4J developers) rewrote this part of WSS4J.

    However, as far as I know, Rampart dev team haven’t yet implemented a way for developers to apply custom validators, nor is there a way to apply WSS4J validators such as the NoOpValidator – even though it’s available in WSS4J. There is an issue registered in their (Rampart’s) project JIRA (read it here), but it has a low priority and as of the moment this is being written; that issue is not included in the next minor (1.6.3) or major (1.7.0) release.

    So, you will have to do either of following three things, in order of my own preference:

    • Use transport layer based authentication ,I would recommend auth headers with HTTPS transport.
    • Downgrade Axis2 and Rampart to 1.5.x, which is still maintained (critical bug fixes).
    • Edit source of wss4j and compile a new jar.
    • Write a module for Axis2 that solves this.

    If there are additional solutions/workarounds, please feel free to comment/correct me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Due to incomplete understanding of eclipse infrastructure I have one problem. Historically we have
Due to an incident a few months prior, thousands of author_ids have been deleted
Due to a number of constraints that I won't get into, I have to
Due to politics at the very large finanial institution for which I work, I
Due to language differences I need to have a separate landscape layout for German.
Due to me receiving a very bad datafile, I have to come up with
Due to limitations in my script, I've come across a problem where I need
Due to various restrictions, I have a method which only accepts an int argument.
Due to a merger, we have inherited a couple of legacy apps which run
Due to a variety of design decisions, we have a table, 'CustomerVariable'. CustomerVariable has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.