PA-DATA ::= SEQUENCE { -- NOTE: first tag is [1], not [0] padata-type [1] Int32, padata-value [2] OCTET STRING -- might be encoded AP-REQ }
302303304305306307308309310311312313314
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 ); preAuth.setPaDataValue( encodedApReq ); paData[0] = preAuth; return paData; }