Package org.apache.wss4j.dom.handler

Examples of org.apache.wss4j.dom.handler.WSHandlerResult


            WSSecurityEngineResult.TAG_X509_CERTIFICATES, crypto.getX509Certificates(cryptoType)
        );
        signedResults.add(signedResult);
       
        List<WSHandlerResult> handlerResults = new ArrayList<WSHandlerResult>();
        WSHandlerResult handlerResult = new WSHandlerResult(null, signedResults);
        handlerResults.add(handlerResult);
       
        WebServiceContext context = validatorParameters.getWebServiceContext();
        context.getMessageContext().put(WSHandlerConstants.RECV_RESULTS, handlerResults);
View Full Code Here


            WSSecurityEngineResult.TAG_X509_CERTIFICATES, crypto.getX509Certificates(cryptoType)
        );
        signedResults.add(signedResult);
       
        List<WSHandlerResult> handlerResults = new ArrayList<WSHandlerResult>();
        WSHandlerResult handlerResult = new WSHandlerResult(null, signedResults);
        handlerResults.add(handlerResult);
       
        WebServiceContext context = validatorParameters.getWebServiceContext();
        context.getMessageContext().put(WSHandlerConstants.RECV_RESULTS, handlerResults);
View Full Code Here

        final List<WSHandlerResult> handlerResults =
            CastUtils.cast((List<?>) messageContext.get(WSHandlerConstants.RECV_RESULTS));

        // Try DOM results first
        if (handlerResults != null && handlerResults.size() > 0) {
            WSHandlerResult handlerResult = handlerResults.get(0);
            List<WSSecurityEngineResult> engineResults = handlerResult.getResults();

            for (WSSecurityEngineResult engineResult : engineResults) {
                Object token = engineResult.get(WSSecurityEngineResult.TAG_SAML_ASSERTION);
                if (token instanceof SamlAssertionWrapper) {
                    return (SamlAssertionWrapper)token;
View Full Code Here

        reqData.setCallbackHandler(new PasswordCallbackHandler());
       
        List<WSSecurityEngineResult> engineResultList =
            securityEngine.processSecurityHeader(secHeaderElement, reqData);
        List<WSHandlerResult> resultsList = new ArrayList<WSHandlerResult>();
        resultsList.add(new WSHandlerResult("actor", engineResultList));
        msgContext.put(WSHandlerConstants.RECV_RESULTS, resultsList);
       
        parser.parseRequest(request, wsContext, null, null);
       
        SCTCanceller sctCanceller = new SCTCanceller();
View Full Code Here

        reqData.setCallbackHandler(new PasswordCallbackHandler());
       
        List<WSSecurityEngineResult> engineResultList =
            securityEngine.processSecurityHeader(secHeaderElement, reqData);
        List<WSHandlerResult> resultsList = new ArrayList<WSHandlerResult>();
        resultsList.add(new WSHandlerResult("actor", engineResultList));
        msgContext.put(WSHandlerConstants.RECV_RESULTS, resultsList);
       
        parser.parseRequest(request, wsContext, null, null);
       
        SCTValidator sctValidator = new SCTValidator();
View Full Code Here

        reqData.setCallbackHandler(new PasswordCallbackHandler());
       
        List<WSSecurityEngineResult> engineResultList =
            securityEngine.processSecurityHeader(secHeaderElement, reqData);
        List<WSHandlerResult> resultsList = new ArrayList<WSHandlerResult>();
        resultsList.add(new WSHandlerResult("actor", engineResultList));
        msgContext.put(WSHandlerConstants.RECV_RESULTS, resultsList);
       
        parser.parseRequest(request, wsContext, null, null);
       
        assertNotNull(parser.getKeyRequirements().getReceivedKey().getX509Cert());
View Full Code Here

                                                                  .get(WSHandlerConstants.RECV_RESULTS));
                        if (results == null) {
                            results = new ArrayList<WSHandlerResult>();
                            message.put(WSHandlerConstants.RECV_RESULTS, results);
                        }
                        WSHandlerResult rResult = new WSHandlerResult(null, v);
                        results.add(0, rResult);

                        assertTokens(message, princ, false);
                        message.put(WSS4JInInterceptor.PRINCIPAL_RESULT, princ);                  
                       
View Full Code Here

                                .get(WSHandlerConstants.RECV_RESULTS));
                        if (results == null) {
                            results = new ArrayList<WSHandlerResult>();
                            message.put(WSHandlerConstants.RECV_RESULTS, results);
                        }
                        WSHandlerResult rResult = new WSHandlerResult(null, samlResults);
                        results.add(0, rResult);

                        boolean signed = false;
                        for (WSSecurityEngineResult result : samlResults) {
                            SamlAssertionWrapper wrapper =
View Full Code Here

                                .get(WSHandlerConstants.RECV_RESULTS));
                        if (results == null) {
                            results = new ArrayList<WSHandlerResult>();
                            message.put(WSHandlerConstants.RECV_RESULTS, results);
                        }
                        WSHandlerResult rResult = new WSHandlerResult(null, bstResults);
                        results.add(0, rResult);

                        assertTokens(message, SPConstants.KERBEROS_TOKEN, false);
                        AssertionInfoMap aim = message.get(AssertionInfoMap.class);
                        assertPolicy(aim, "WssKerberosV5ApReqToken11");
View Full Code Here

    ) {
        final List<WSHandlerResult> handlerResults =
            CastUtils.cast((List<?>) messageContext.get(WSHandlerConstants.RECV_RESULTS));

        if (handlerResults != null && handlerResults.size() > 0) {
            WSHandlerResult handlerResult = handlerResults.get(0);
            List<WSSecurityEngineResult> engineResults = handlerResult.getResults();

            for (WSSecurityEngineResult engineResult : engineResults) {
                Integer action = (Integer)engineResult.get(WSSecurityEngineResult.TAG_ACTION);
                if (action.equals(WSConstants.SIGN)) {
                    byte[] receivedKey = (byte[])engineResult.get(WSSecurityEngineResult.TAG_SECRET);
View Full Code Here

TOP

Related Classes of org.apache.wss4j.dom.handler.WSHandlerResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.