use of com.sun.enterprise.security.jauth.FailureException in project Payara by payara.
the class WebServiceSecurity method validateRequest.
// when called by jaxrpc SystemHandlerDelegate
public static boolean validateRequest(javax.xml.rpc.handler.soap.SOAPMessageContext context, ServerAuthContext sAC) throws AuthException {
boolean rvalue = true;
SOAPAuthParam param = new SOAPAuthParam(context.getMessage(), null);
// put sharedState in MessageContext for use by secureResponse
HashMap sharedState = new HashMap();
context.setProperty(SHARED_SERVER_STATE, sharedState);
try {
rvalue = validateRequest(param, sharedState, sAC);
} catch (PendingException pe) {
_logger.log(Level.FINE, "Container-auth: wss: Error validating request ", pe);
context.setMessage(param.getResponse());
rvalue = false;
} catch (FailureException fe) {
_logger.log(Level.FINE, "Container-auth: wss: Error validating request ", fe);
context.setMessage(param.getResponse());
throw fe;
}
return rvalue;
}
Aggregations