1 17 package org.apache.servicemix.jbi.security.keystore; 18 19 import java.security.KeyManagementException ; 20 import java.security.KeyStoreException ; 21 import java.security.NoSuchAlgorithmException ; 22 import java.security.NoSuchProviderException ; 23 import java.security.UnrecoverableKeyException ; 24 25 import javax.net.ssl.SSLServerSocketFactory; 26 import javax.net.ssl.SSLSocketFactory; 27 28 32 public interface KeystoreManager { 33 34 KeystoreInstance getKeystore(String name); 35 36 58 public SSLServerSocketFactory createSSLServerFactory( 59 String provider, 60 String protocol, 61 String algorithm, 62 String keyStore, 63 String keyAlias, 64 String trustStore) 65 throws KeystoreIsLocked, KeyIsLocked, NoSuchAlgorithmException , UnrecoverableKeyException , KeyStoreException , KeyManagementException , NoSuchProviderException ; 66 67 89 public SSLSocketFactory createSSLFactory( 90 String provider, 91 String protocol, 92 String algorithm, 93 String keyStore, 94 String keyAlias, 95 String trustStore) 96 throws KeystoreIsLocked, KeyIsLocked, NoSuchAlgorithmException , UnrecoverableKeyException , KeyStoreException , KeyManagementException , NoSuchProviderException ; 97 98 } 99 | Popular Tags |