Examples of SSLConfig


Examples of org.apache.geronimo.corba.security.config.ssl.SSLConfig

     * @return The SSLConfig object use to manage transport-level
     *         security.
     */
    public SSLConfig getSslConfig() {
        if (sslConfig == null) {
            sslConfig = new SSLConfig();
        }
        return sslConfig;
    }
View Full Code Here

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

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

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

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

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

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

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

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

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

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

Examples of org.apache.solr.client.solrj.embedded.SSLConfig

    private JettySolrFactory() {
        // Util classs
    }

    private static SSLConfig buildSSLConfig(boolean useSsl, boolean sslClientAuth) {
        SSLConfig sslConfig = new SSLConfig(useSsl, false, TEST_KEYSTORE_PATH, TEST_KEYSTORE_PASSWORD,
                                            TEST_KEYSTORE_PATH, TEST_KEYSTORE_PASSWORD);
        return sslConfig;
    }
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.