Examples of validatePolicy()


Examples of org.apache.cxf.ws.security.wss4j.policyvalidators.SupportingTokenPolicyValidator.validatePolicy()

        validator = new SignedEndorsingEncryptedTokenPolicyValidator();
        validator.setUsernameTokenResults(utResults, utWithCallbacks);
        validator.setSAMLTokenResults(samlResults);
        validator.setTimestampElement(timestamp);
        check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);
       
        return check;
    }
   
    private boolean assertHeadersExists(AssertionInfoMap aim, SoapMessage msg, Node header)
View Full Code Here

Examples of org.apache.cxf.ws.security.wss4j.policyvalidators.SupportingTokenPolicyValidator.validatePolicy()

       
        SupportingTokenPolicyValidator validator = new ConcreteSupportingTokenPolicyValidator();
        validator.setUsernameTokenResults(utResults, utWithCallbacks);
        validator.setSAMLTokenResults(samlResults);
        validator.setTimestampElement(timestamp);
        check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);
       
        validator = new SignedTokenPolicyValidator();
        validator.setUsernameTokenResults(utResults, utWithCallbacks);
        validator.setSAMLTokenResults(samlResults);
        validator.setTimestampElement(timestamp);
View Full Code Here

Examples of org.apache.cxf.ws.security.wss4j.policyvalidators.SupportingTokenPolicyValidator.validatePolicy()

       
        validator = new SignedTokenPolicyValidator();
        validator.setUsernameTokenResults(utResults, utWithCallbacks);
        validator.setSAMLTokenResults(samlResults);
        validator.setTimestampElement(timestamp);
        check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);

        validator = new EndorsingTokenPolicyValidator();
        validator.setUsernameTokenResults(utResults, utWithCallbacks);
        validator.setSAMLTokenResults(samlResults);
        validator.setTimestampElement(timestamp);
View Full Code Here

Examples of org.apache.cxf.ws.security.wss4j.policyvalidators.SupportingTokenPolicyValidator.validatePolicy()

        validator = new EndorsingTokenPolicyValidator();
        validator.setUsernameTokenResults(utResults, utWithCallbacks);
        validator.setSAMLTokenResults(samlResults);
        validator.setTimestampElement(timestamp);
        check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);

        validator = new SignedEndorsingTokenPolicyValidator();
        validator.setUsernameTokenResults(utResults, utWithCallbacks);
        validator.setSAMLTokenResults(samlResults);
        validator.setTimestampElement(timestamp);
View Full Code Here

Examples of org.apache.cxf.ws.security.wss4j.policyvalidators.SymmetricBindingPolicyValidator.validatePolicy()

                aim, msg, soapBody, results, signedResults, encryptedResults
            );
           
        BindingPolicyValidator symmetricValidator = new SymmetricBindingPolicyValidator();
        check &=
            symmetricValidator.validatePolicy(
                aim, msg, soapBody, results, signedResults, encryptedResults
            );

        BindingPolicyValidator asymmetricValidator = new AsymmetricBindingPolicyValidator();
        check &=
View Full Code Here

Examples of org.apache.cxf.ws.security.wss4j.policyvalidators.TokenPolicyValidator.validatePolicy()

        List<WSSecurityEngineResult> results,
        List<WSSecurityEngineResult> signedResults
    ) {
        boolean check = true;
        TokenPolicyValidator x509Validator = new X509TokenPolicyValidator();
        check &= x509Validator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        TokenPolicyValidator utValidator = new UsernameTokenPolicyValidator();
        check &= utValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        TokenPolicyValidator samlValidator = new SamlTokenPolicyValidator();
View Full Code Here

Examples of org.apache.cxf.ws.security.wss4j.policyvalidators.TokenPolicyValidator.validatePolicy()

        boolean check = true;
        TokenPolicyValidator x509Validator = new X509TokenPolicyValidator();
        check &= x509Validator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        TokenPolicyValidator utValidator = new UsernameTokenPolicyValidator();
        check &= utValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        TokenPolicyValidator samlValidator = new SamlTokenPolicyValidator();
        check &= samlValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        TokenPolicyValidator sctValidator = new SecurityContextTokenPolicyValidator();
View Full Code Here

Examples of org.apache.cxf.ws.security.wss4j.policyvalidators.TokenPolicyValidator.validatePolicy()

       
        TokenPolicyValidator utValidator = new UsernameTokenPolicyValidator();
        check &= utValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        TokenPolicyValidator samlValidator = new SamlTokenPolicyValidator();
        check &= samlValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        TokenPolicyValidator sctValidator = new SecurityContextTokenPolicyValidator();
        check &= sctValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        TokenPolicyValidator wss11Validator = new WSS11PolicyValidator();
View Full Code Here

Examples of org.apache.cxf.ws.security.wss4j.policyvalidators.TokenPolicyValidator.validatePolicy()

       
        TokenPolicyValidator samlValidator = new SamlTokenPolicyValidator();
        check &= samlValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        TokenPolicyValidator sctValidator = new SecurityContextTokenPolicyValidator();
        check &= sctValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        TokenPolicyValidator wss11Validator = new WSS11PolicyValidator();
        check &= wss11Validator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        return check;
View Full Code Here

Examples of org.apache.cxf.ws.security.wss4j.policyvalidators.TokenPolicyValidator.validatePolicy()

       
        TokenPolicyValidator sctValidator = new SecurityContextTokenPolicyValidator();
        check &= sctValidator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        TokenPolicyValidator wss11Validator = new WSS11PolicyValidator();
        check &= wss11Validator.validatePolicy(aim, msg, soapBody, results, signedResults);
       
        return check;
    }
   
    /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.