How to only allows designated spark client to register and login?

Hello

Now we have do a Secondary Development of Spark, and I want that only this version of Spark could register in my openfire server.

How to do?Add a secret key?

Thanks