Registering SIP User

Using X-Lite, I can register SIP using my user 6000 provided with the password. How can I make the same using the Asterisk-Java library?