Package org.apache.cxf.ws.security.policy.model

Examples of org.apache.cxf.ws.security.policy.model.SamlToken


    }


    private void addSamlToken(SoapMessage message) {
        WSSConfig.init();
        SamlToken tok = assertSamlTokens(message);

        Header h = findSecurityHeader(message, true);
        try {
            AssertionWrapper wrapper = addSamlToken(tok, message);
            if (wrapper == null) {
View Full Code Here


        List<WSSecurityEngineResult> samlResults = new ArrayList<WSSecurityEngineResult>();
        WSSecurityUtil.fetchAllActionResults(results, WSConstants.ST_SIGNED, samlResults);
        WSSecurityUtil.fetchAllActionResults(results, WSConstants.ST_UNSIGNED, samlResults);
       
        for (AssertionInfo ai : ais) {
            SamlToken samlToken = (SamlToken)ai.getAssertion();
            ai.setAsserted(true);

            if (!isTokenRequired(samlToken, message)) {
                continue;
            }
View Full Code Here

        AssertionInfoMap aim = message.get(AssertionInfoMap.class);
        if (aim != null) {
            Collection<AssertionInfo> ais = aim.get(SP12Constants.SAML_TOKEN);
            if (ais != null && !ais.isEmpty()) {
                for (AssertionInfo ai : ais) {
                    SamlToken samlToken = (SamlToken)ai.getAssertion();
                    SupportingToken supportingToken = samlToken.getSupportingToken();
                    if (supportingToken != null && supportingToken.getAlgorithmSuite() != null) {
                        AlgorithmSuite algorithmSuite =
                            translateAlgorithmSuite(supportingToken.getAlgorithmSuite());
                        data.setSamlAlgorithmSuite(algorithmSuite);
                        break;
View Full Code Here

        Collection<AssertionInfo> samlAis = aim.get(SP12Constants.SAML_TOKEN);
        if (samlAis != null && !samlAis.isEmpty()) {
            for (AssertionInfo ai : samlAis) {
                AssertionWrapper assertionWrapper =
                    (AssertionWrapper)wser.get(WSSecurityEngineResult.TAG_SAML_ASSERTION);
                SamlToken samlToken = (SamlToken)ai.getAssertion();
                ai.setAsserted(true);
               
                boolean tokenRequired = isTokenRequired(samlToken, message);
                if (tokenRequired && assertionWrapper == null) {
                    ai.setNotAsserted(
View Full Code Here

        Collection<AssertionInfo> samlAis = aim.get(SP12Constants.SAML_TOKEN);
        if (samlAis != null && !samlAis.isEmpty()) {
            for (AssertionInfo ai : samlAis) {
                AssertionWrapper assertionWrapper =
                    (AssertionWrapper)wser.get(WSSecurityEngineResult.TAG_SAML_ASSERTION);
                SamlToken samlToken = (SamlToken)ai.getAssertion();
                ai.setAsserted(true);
               
                boolean tokenRequired = isTokenRequired(samlToken, message);
                if ((tokenRequired && assertionWrapper == null)
                    || (!tokenRequired && assertionWrapper != null)) {
View Full Code Here

TOP

Related Classes of org.apache.cxf.ws.security.policy.model.SamlToken

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.