});
stream.flip();
// Allocate a AsRep Container
ApRepContainer apRepContainer = new ApRepContainer( stream );
// Decode the ApRep PDU
try
{
kerberosDecoder.decode( stream, apRepContainer );
}
catch ( DecoderException de )
{
fail( de.getMessage() );
}
ApRep apRep = apRepContainer.getApRep();
// Check the encoding
int length = apRep.computeLength();
// Check the length