Code example for UnrecoverableKeyException

0
                        } 
                    } 
                } 
                catch (Exception e)
                { 
                    throw new UnrecoverableKeyException("no match");
                } 
            } 
            else 
            { 
                throw new RuntimeException("forget something!");
                // TODO 
                // if we get to here key was saved as byte data, which 
                // according to the docs means it must be a private key 
                // in EncryptedPrivateKeyInfo (PKCS8 format), later... 
                // 
            } 
        } 
 
        Certificate[] getCertificateChain()
        {