public DERObject getPublicKey ( ) throws IOException { ByteArrayInputStream bIn = new ByteArrayInputStream ( keyData . getBytes ( ) ) ; ASN1InputStream aIn = new ASN1InputStream ( bIn ) ; return aIn . readObject ( ) ; }
for when the public key is an encoded object - if the bitstring can t be decoded this routine throws an IOException .