public KeyPair readKeyPair(String algorithm, Reader rdr, char[] passphrase)
throws CryptoException, IOException
{
PEMParser pp = new PEMParser(rdr);
try {
Object po = pp.readObject();
if (log.isDebugEnabled()) {
log.debug("Trying to read an {} key pair and got {}", algorithm, po);
}
if (po instanceof PEMKeyPair) {