* @throws IOException
*/
protected PaData[] getPreAuthenticationData( Ticket ticket, EncryptedData authenticator )
throws EncoderException
{
ApReq applicationRequest = new ApReq();
applicationRequest.setApOptions( new ApOptions() );
applicationRequest.setTicket( ticket );
applicationRequest.setAuthenticator( authenticator );
ByteBuffer buffer = ByteBuffer.allocate( applicationRequest.computeLength() );
byte[] encodedApReq = applicationRequest.encode( buffer ).array();
PaData[] paData = new PaData[1];
PaData preAuth = new PaData();
preAuth.setPaDataType( PaDataType.PA_TGS_REQ );