1 17 package org.apache.servicemix.jbi.security.keystore; 18 19 import java.security.KeyStoreException ; 20 import java.security.NoSuchAlgorithmException ; 21 import java.security.PrivateKey ; 22 import java.security.UnrecoverableKeyException ; 23 import java.security.cert.Certificate ; 24 25 import javax.net.ssl.KeyManager; 26 import javax.net.ssl.TrustManager; 27 28 33 public interface KeystoreInstance { 34 35 String getName(); 36 37 String [] listPrivateKeys(); 38 39 String [] listTrustCertificates(); 40 41 Certificate getCertificate(String alias); 42 43 String getCertificateAlias(Certificate cert); 44 45 Certificate [] getCertificateChain(String alias); 46 47 PrivateKey getPrivateKey(String alias); 48 49 boolean isKeystoreLocked(); 50 51 boolean isKeyLocked(String keyAlias); 52 53 KeyManager[] getKeyManager(String algorithm, String keyAlias) throws NoSuchAlgorithmException , UnrecoverableKeyException , KeyStoreException , KeystoreIsLocked, KeystoreIsLocked; 54 55 TrustManager[] getTrustManager(String algorithm) throws KeyStoreException , NoSuchAlgorithmException , KeystoreIsLocked; 56 57 } 58 | Popular Tags |