1 package org.jboss.remoting.security; 2 3 import java.io.IOException ; 4 import java.security.KeyManagementException ; 5 import java.security.KeyStoreException ; 6 import java.security.NoSuchAlgorithmException ; 7 import java.security.UnrecoverableKeyException ; 8 import java.security.cert.CertificateException ; 9 import javax.net.ServerSocketFactory; 10 import javax.net.SocketFactory; 11 12 15 public interface SSLSocketBuilderMBean 16 { 17 20 void create() throws Exception ; 21 22 25 void start() throws Exception ; 26 27 30 void stop(); 31 32 35 void destroy(); 36 37 51 void setUseSSLServerSocketFactory(boolean shouldUse); 52 53 59 boolean getUseSSLServerSocketFactory(); 60 61 74 void setUseSSLSocketFactory(boolean shouldUse); 75 76 82 boolean getUseSSLSocketFactory(); 83 84 88 String getSecureSocketProtocol(); 89 90 94 void setSecureSocketProtocol(String secureSocketProtocol); 95 96 100 String getKeyManagementAlgorithm(); 101 102 106 void setKeyManagementAlgorithm(String keyManagementAlgorithm); 107 108 115 String getKeyStoreType(); 116 117 124 void setKeyStoreType(String keyStoreType); 125 126 133 void setKeyStorePassword(String passphrase); 134 135 142 void setKeyPassword(String passphrase); 143 144 162 ServerSocketFactory createSSLServerSocketFactory() 163 throws IOException , NoSuchAlgorithmException , KeyStoreException , 164 CertificateException , UnrecoverableKeyException , KeyManagementException ; 165 166 182 SocketFactory createSSLSocketFactory() 183 throws IOException , NoSuchAlgorithmException , KeyStoreException , 184 CertificateException , KeyManagementException ; 185 186 194 void setKeyStoreURL(String storeURL) throws IOException ; 195 196 204 void setTrustStoreURL(String storeURL) throws IOException ; 205 } 206 | Popular Tags |