public byte[] encode( Encodable privPart ) throws IOException
{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ASN1OutputStream aos = new ASN1OutputStream( baos );
DERSequence privPartSequence = encodePrivatePartSequence( ( EncKrbPrivPart ) privPart );
aos.writeObject( DERApplicationSpecific.valueOf( APPLICATION_CODE, privPartSequence ) );
aos.close();
return baos.toByteArray();
}