question: public byte [ ] asn1Encode ( ) throws Asn1Exception , IOException { DerOutputStream bytes = new DerOutputStream ( ) ; DerOutputStream temp = new DerOutputStream ( ) ; temp . putInteger ( BigInteger . valueOf ( trType ) ) ; bytes . write ( DerValue . createTag ( DerValue . TAG_CONTEXT , true , ( byte ) 0x00 ) , temp ) ; temp = new DerOutputStream ( ) ; temp . putOctetString ( contents ) ; bytes . write ( DerValue . createTag ( DerValue . TAG_CONTEXT , true , ( byte ) 0x01 ) , temp ) ; temp = new DerOutputStream ( ) ; temp . write ( DerValue . tag_Sequence , bytes ) ; return temp . toByteArray ( ) ; }
target:  Encodes a TransitedEncoding object.