What is the registration string and how can it secure the trunk?

Registration string is used to secure the SIP Trunking. The trunks will be activated only if the authentication is completed. For configuring registration trunk we have to add this line (format) under trunk configuration as username:password@your.provider.com:5060...