static Token<JobTokenIdentifier> deserializeServiceData(ByteBuffer secret) throws IOException {
    DataInputByteBuffer in = new DataInputByteBuffer();
    in.reset(secret);
    Token<JobTokenIdentifier> jt = new Token<JobTokenIdentifier>();
    jt.readFields(in);
    return jt;
  }
A helper function to serialize the JobTokenIdentifier to be sent to the
ShuffleHandler as ServiceData.
@param jobToken the job token to be used for authentication of
shuffle data requests.
@return the serialized version of the jobToken.
llap-server/src/java/org/apache/hadoop/hive/llap/shufflehandler/ShuffleHandler.java