Package org.apache.rampart.policy.model

Examples of org.apache.rampart.policy.model.SSLConfig


                     
        // handle ssl config 
    childElement = element.getFirstChildWithName(new QName(
                RampartConfig.NS, RampartConfig.SSL_CONFIG));
        if (childElement != null) {                           
          SSLConfig sslConfig = (SSLConfig)new SSLConfigBuilder().
                                    build(childElement,
                                factory);
            rampartConfig.setSSLConfig(sslConfig);
           
        }
View Full Code Here


                     
        // handle ssl config 
    childElement = element.getFirstChildWithName(new QName(
                RampartConfig.NS, RampartConfig.SSL_CONFIG));
        if (childElement != null) {                           
          SSLConfig sslConfig = (SSLConfig)new SSLConfigBuilder().
                                    build(childElement,
                                factory);
            rampartConfig.setSSLConfig(sslConfig);
           
        }
View Full Code Here

                     
        // handle ssl config 
    childElement = element.getFirstChildWithName(new QName(
                RampartConfig.NS, RampartConfig.SSL_CONFIG));
        if (childElement != null) {                           
          SSLConfig sslConfig = (SSLConfig)new SSLConfigBuilder().
                                    build(childElement,
                                factory);
            rampartConfig.setSSLConfig(sslConfig);
           
        }
View Full Code Here

                     
        // handle ssl config 
    childElement = element.getFirstChildWithName(new QName(
                RampartConfig.NS, RampartConfig.SSL_CONFIG));
        if (childElement != null) {                           
          SSLConfig sslConfig = (SSLConfig)new SSLConfigBuilder().
                                    build(childElement,
                                factory);
            rampartConfig.setSSLConfig(sslConfig);
           
        }
View Full Code Here

                     
        // handle ssl config 
    childElement = element.getFirstChildWithName(new QName(
                RampartConfig.NS, RampartConfig.SSL_CONFIG));
        if (childElement != null) {                           
          SSLConfig sslConfig = (SSLConfig)new SSLConfigBuilder().
                                    build(childElement,
                                factory);
            rampartConfig.setSSLConfig(sslConfig);
           
        }
View Full Code Here

public class SSLConfigBuilder implements AssertionBuilder<OMElement> {

    public Assertion build(OMElement element, AssertionBuilderFactory factory)
            throws IllegalArgumentException {
       
      SSLConfig sslCofig = new SSLConfig();              
    Properties properties = new Properties();
        OMElement childElement;
        OMAttribute name;
        String value;    
       
        for (Iterator iterator = element.getChildElements(); iterator.hasNext();) {           

            childElement = (OMElement) iterator.next();

            QName prop = new QName(RampartConfig.NS, SSLConfig.PROPERTY_LN);
           
            if (prop.equals(childElement.getQName())) {
                name = childElement.getAttribute(new QName(SSLConfig.PROPERTY_NAME_ATTR));
                value = childElement.getText();
               
                //setting the jsse properties to the vm
                System.setProperty(name.getAttributeValue(), value);

                properties.put(name.getAttributeValue(), value.trim());
            }

        }           
        sslCofig.setProp(properties);
             
        return sslCofig;
    }
View Full Code Here

                     
        // handle ssl config 
    childElement = element.getFirstChildWithName(new QName(
                RampartConfig.NS, RampartConfig.SSL_CONFIG));
        if (childElement != null) {                           
          SSLConfig sslConfig = (SSLConfig)new SSLConfigBuilder().
                                    build(childElement,
                                factory);
            rampartConfig.setSSLConfig(sslConfig);
           
        }
View Full Code Here

public class SSLConfigBuilder implements AssertionBuilder {

    public Assertion build(OMElement element, AssertionBuilderFactory factory)
            throws IllegalArgumentException {
       
      SSLConfig sslCofig = new SSLConfig();              
    Properties properties = new Properties();
        OMElement childElement;
        OMAttribute name;
        String value;    
       
        for (Iterator iterator = element.getChildElements(); iterator.hasNext();) {           

            childElement = (OMElement) iterator.next();

            QName prop = new QName(RampartConfig.NS, SSLConfig.PROPERTY_LN);
           
            if (prop.equals(childElement.getQName())) {
                name = childElement.getAttribute(new QName(SSLConfig.PROPERTY_NAME_ATTR));
                value = childElement.getText();
               
                //setting the jsse properties to the vm
                System.setProperty(name.getAttributeValue(), value);

                properties.put(name.getAttributeValue(), value.trim());
            }

        }           
        sslCofig.setProp(properties);
             
        return sslCofig;
    }
View Full Code Here

TOP

Related Classes of org.apache.rampart.policy.model.SSLConfig

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.