public byte [ ] getEncoded ( ) throws CertificateEncodingException { try { if ( encoded == null ) { DerOutputStream tmp = new DerOutputStream ( ) ; emit ( tmp ) ; encoded = tmp . toByteArray ( ) ; } } catch ( IOException ex ) { throw new CertificateEncodingException ( ex . toString ( ) ) ; } return encoded ; }
Return the DER encoded form of the certificate pair .