Package org.apache.cxf.ws.security.wss4j.policyvalidators

Examples of org.apache.cxf.ws.security.wss4j.policyvalidators.AlgorithmSuitePolicyValidator


            asymmetricValidator.validatePolicy(
                aim, msg, soapBody, results, signedResults, encryptedResults
            );
       
        // Check AlgorithmSuite + Layout that might not be tied to a binding
        AlgorithmSuitePolicyValidator algorithmSuiteValidator = new AlgorithmSuitePolicyValidator();
        check &=
            algorithmSuiteValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        LayoutPolicyValidator layoutValidator = new LayoutPolicyValidator();
        check &= layoutValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        return check;
View Full Code Here


            asymmetricValidator.validatePolicy(
                aim, msg, soapBody, results, signedResults, encryptedResults
            );
       
        // Check AlgorithmSuite + Layout that might not be tied to a binding
        AlgorithmSuitePolicyValidator algorithmSuiteValidator = new AlgorithmSuitePolicyValidator();
        check &=
            algorithmSuiteValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        LayoutPolicyValidator layoutValidator = new LayoutPolicyValidator();
        check &= layoutValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        return check;
View Full Code Here

            } else if (prots == Protections.ENCRYPT_SIGN) {
                ai.setNotAsserted("Not signed before encrypted");
                return false;
            }
           
            AlgorithmSuitePolicyValidator algorithmValidator = new AlgorithmSuitePolicyValidator(results);
            if (!algorithmValidator.validatePolicy(ai, abinding.getAlgorithmSuite())) {
                return false;
            }
           
            if (abinding.getEncryptionToken() != null) {
                assertPolicy(aim, abinding.getEncryptionToken());
View Full Code Here

            } else if (prots == Protections.ENCRYPT_SIGN) {
                ai.setNotAsserted("Not signed before encrypted");
                return false;
            }
           
            AlgorithmSuitePolicyValidator algorithmValidator = new AlgorithmSuitePolicyValidator(results);
            if (!algorithmValidator.validatePolicy(ai, abinding.getAlgorithmSuite())) {
                return false;
            }
           
            if (abinding.getInitiatorToken() != null) {
                assertPolicy(aim, abinding.getInitiatorToken());
View Full Code Here

            if (binding.getTransportToken() != null) {
                assertPolicy(aim, binding.getTransportToken());
                assertPolicy(aim, binding.getTransportToken().getToken());
            }
           
            AlgorithmSuitePolicyValidator algorithmValidator = new AlgorithmSuitePolicyValidator(results);
            if (!algorithmValidator.validatePolicy(ai, binding.getAlgorithmSuite())) {
                return false;
            }
        }
       
        assertPolicy(aim, SP12Constants.ENCRYPTED_PARTS);
View Full Code Here

TOP

Related Classes of org.apache.cxf.ws.security.wss4j.policyvalidators.AlgorithmSuitePolicyValidator

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.