Examples of AlgorithmSuiteLoader


Examples of org.apache.cxf.ws.security.policy.custom.AlgorithmSuiteLoader

        throws IllegalArgumentException {
       
        SPConstants consts = SP11Constants.SP_NS.equals(element.getNamespaceURI())
            ? SP11Constants.INSTANCE : SP12Constants.INSTANCE;

        AlgorithmSuiteLoader loader = bus.getExtension(AlgorithmSuiteLoader.class);
        if (loader == null) {
            loader = new DefaultAlgorithmSuiteLoader();
        }
        Element policyElement = DOMUtils.getFirstElement(element);
        AlgorithmSuite algorithmSuite = null;
        try {
            algorithmSuite = loader.getAlgorithmSuite(policyElement, consts);
        } catch (WSSPolicyException e) {
            throw new IllegalArgumentException(e);
        }
       
        if (algorithmSuite == null) {
View Full Code Here

Examples of org.apache.cxf.ws.security.policy.custom.AlgorithmSuiteLoader

        throws IllegalArgumentException {
       
        SPConstants consts = SP11Constants.SP_NS.equals(element.getNamespaceURI())
            ? SP11Constants.INSTANCE : SP12Constants.INSTANCE;

        AlgorithmSuiteLoader loader = bus.getExtension(AlgorithmSuiteLoader.class);
        if (loader == null) {
            loader = new DefaultAlgorithmSuiteLoader();
        }
        Element policyElement = DOMUtils.getFirstElement(element);
        if (policyElement == null) {
            throw new IllegalArgumentException(
                "sp:AlgorithmSuite/wsp:Policy must have a value"
            );
        }
        AlgorithmSuite algorithmSuite = null;
        try {
            algorithmSuite = loader.getAlgorithmSuite(policyElement, consts);
        } catch (WSSPolicyException e) {
            throw new IllegalArgumentException(e);
        }
       
        if (algorithmSuite == null && consts != SP11Constants.INSTANCE) {
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.