1 17 package org.apache.servicemix.http.jetty; 18 19 import javax.net.ssl.SSLServerSocketFactory; 20 21 import org.apache.servicemix.jbi.security.keystore.KeystoreManager; 22 import org.mortbay.jetty.security.SslSocketConnector; 23 24 public class ServiceMixSslSocketConnector extends SslSocketConnector { 25 26 private String trustStore; 27 28 private String keyAlias; 29 30 private KeystoreManager keystoreManager; 31 32 35 public KeystoreManager getKeystoreManager() { 36 return keystoreManager; 37 } 38 39 42 public void setKeystoreManager(KeystoreManager keystoreManager) { 43 this.keystoreManager = keystoreManager; 44 } 45 46 49 public String getKeyAlias() { 50 return keyAlias; 51 } 52 53 56 public void setKeyAlias(String keyAlias) { 57 this.keyAlias = keyAlias; 58 } 59 60 63 public String getTrustStore() { 64 return trustStore; 65 } 66 67 70 public void setTrustStore(String trustStore) { 71 this.trustStore = trustStore; 72 } 73 74 protected SSLServerSocketFactory createFactory() throws Exception { 75 return keystoreManager.createSSLServerFactory( 76 getProvider(), 77 getProtocol(), 78 getSslKeyManagerFactoryAlgorithm(), 79 getKeystore(), 80 getKeyAlias(), 81 getTrustStore()); 82 } 83 } 84 | Popular Tags |