Search in sources :

Example 1 with FailureException

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;
}
Also used : SOAPAuthParam(com.sun.enterprise.security.jauth.jaspic.provider.SOAPAuthParam) HashMap(java.util.HashMap) PendingException(com.sun.enterprise.security.jauth.PendingException) FailureException(com.sun.enterprise.security.jauth.FailureException)

Aggregations

FailureException (com.sun.enterprise.security.jauth.FailureException)1 PendingException (com.sun.enterprise.security.jauth.PendingException)1 SOAPAuthParam (com.sun.enterprise.security.jauth.jaspic.provider.SOAPAuthParam)1 HashMap (java.util.HashMap)1