@ Override public byte [ ] getEncoded ( String encoding ) throws CertificateEncodingException { switch ( encoding ) { case PKIPATH_ENCODING : return encodePKIPATH ( ) ; case PKCS7_ENCODING : return encodePKCS7 ( ) ; default : throw new CertificateEncodingException ( "unsupported encoding" ) ; } }
Returns the encoded form of this certification path using the specified encoding .