func (this *Authority) RemoveUserInfo() {
	this.userInfo = nil
}
Remove the user Infor.
package address
import (
	"sip/core"
)
type Authority struct {
	hostPort *core.HostPort
	userInfo *UserInfo
}
func NewAuthority() *Authority {
	return &Authority{}
}
func (this *Authority) Clone() interface{} {
	retval := &Authority{}
	if this.hostPort != nil {
		retval.hostPort = this.hostPort.Clone().(*core.HostPort)
	}
	if this.userInfo != nil {
		retval.userInfo = this.userInfo.Clone().(*UserInfo)
	}
	return retval
}
func (this *Authority) String() string {
	if this.userInfo != nil && this.hostPort != nil {
		return this.userInfo.String() + core.SIPSeparatorNames_AT + this.hostPort.String()
	} else if this.hostPort != nil {
		return this.hostPort.String()
	} else {
		return ""
	}
}
func (this *Authority) GetHostPort() *core.HostPort {
	return this.hostPort
}
func (this *Authority) GetUserInfo() *UserInfo {
	return this.userInfo
}
func (this *Authority) GetPassword() string {
	if this.userInfo == nil {
		return ""
	} else {
		return this.userInfo.GetPassword()
	}
}
func (this *Authority) GetUser() string {
	if this.userInfo == nil {
		return ""
	} else {
		return this.userInfo.GetUser()
	}
}
func (this *Authority) GetHost() *core.Host {
	if this.hostPort == nil {
		return nil
	} else {
		return this.hostPort.GetHost()
	}
}
func (this *Authority) GetPort() int {
	if this.hostPort == nil {
		return -1
	} else {
		return this.hostPort.GetPort()
	}
}
func (this *Authority) RemovePort() {
	if this.hostPort != nil {
		this.hostPort.RemovePort()
	}
}
func (this *Authority) SetPassword(passwd string) {
	if this.userInfo == nil {
		this.userInfo = NewUserInfo()
	}
	this.userInfo.SetPassword(passwd)
}
func (this *Authority) SetUser(user string) {
	if this.userInfo == nil {
		this.userInfo = NewUserInfo()
	}
	this.userInfo.SetUser(user)
}
func (this *Authority) SetHost(host *core.Host) {
	if this.hostPort == nil {
		this.hostPort = core.NewHostPort()
	}
	this.hostPort.SetHost(host)
}
func (this *Authority) SetPort(port int) {
	if this.hostPort == nil {
		this.hostPort = core.NewHostPort()
	}
	this.hostPort.SetPort(port)
}
func (this *Authority) SetHostPort(h *core.HostPort) {
	this.hostPort = h
}
func (this *Authority) SetUserInfo(u *UserInfo) {
	this.userInfo = u
}