Hi,
I am trying to create a handler and read user name/password there to
authenticate the Web-Service client. I have used Rampart as explained in
articles and able to pass username/password as plain text and authenticate
user. Now I want to capture same details in a handler so that it can be
invoked for all Web-Services. I am referring to article -
http://wso2.org/library/169 and trying to get this as below -
Vector results = null;
if ((results = (Vector) msgCtx
.getProperty(WSHandlerConstants.RECV_RESULTS)) == null) {
throw new RuntimeException("No security results!!");
} else {
for (int i = 0; i < results.size(); i++) {
//Get hold of the WSHandlerResult instance
WSHandlerResult rResult = (WSHandlerResult) results.get(i);
Vector wsSecEngineResults = rResult.getResults();
for (int j = 0; j < wsSecEngineResults.size(); j++) {
//Get hold of the WSSecurityEngineResult instance
WSSecurityEngineResult wser = (WSSecurityEngineResult)
wsSecEngineResults.get(j);
}
}
}
How ever I am not able to locate (WSHandlerConstants.RECV_RESULTS). Can any
one please help quickly and tell m whch jar to include for this. I am using
Axis2 1.3.
Many Thanks for your time and help