Code example for KeyStoreException

0
                try { 
                    keyStore.load(new BufferedInputStream(new FileInputStream(keyStoreName)), pwd);
                } catch (FileNotFoundException e) {
                    throw new KeyStoreException(e);
                } catch (IOException e) {
                    throw new KeyStoreException(e);
                } catch (CertificateException e) {
                    throw new KeyStoreException(e);
                } catch (NoSuchAlgorithmException e) {
                    throw new KeyStoreException(e);
                } 
            } 
        } 
 
    } 
 
    /** 
     * @see javax.net.ssl#engineInit(ManagerFactoryParameters) 
     */ 
    @Override 
    public void engineInit(ManagerFactoryParameters spec)