{
@Override
public void encode( IoSession session, Object message, ProtocolEncoderOutput out ) throws Exception
{
Asn1Object asn1Obj = ( Asn1Object ) message;
boolean isTcp = !session.getTransportMetadata().isConnectionless();
ByteBuffer encodedByteBuf = KerberosEncoder.encode( asn1Obj, isTcp );
IoBuffer buf = IoBuffer.allocate( encodedByteBuf.remaining() );
buf.put( encodedByteBuf.array() );