Search in sources :

Example 1 with RequestParser

use of org.apache.cxf.sts.request.RequestParser in project cxf by apache.

the class AbstractOperation method parseRequest.

/**
 * Check the arguments from the STSProvider and parse the request.
 */
protected RequestRequirements parseRequest(RequestSecurityTokenType request, Map<String, Object> messageContext) {
    if (messageContext == null) {
        throw new STSException("No message context found");
    }
    if (stsProperties == null) {
        throw new STSException("No STSProperties object found");
    }
    stsProperties.configureProperties();
    RequestParser requestParser = new RequestParser();
    requestParser.setAllowCustomContent(allowCustomContent);
    return requestParser.parseRequest(request, messageContext, stsProperties, claimsManager.getClaimParsers());
}
Also used : RequestParser(org.apache.cxf.sts.request.RequestParser) STSException(org.apache.cxf.ws.security.sts.provider.STSException)

Aggregations

RequestParser (org.apache.cxf.sts.request.RequestParser)1 STSException (org.apache.cxf.ws.security.sts.provider.STSException)1