当前位置: 首页>>代码示例>>Java>>正文


Java SipProfile.CRED_SCHEME_DIGEST属性代码示例

本文整理汇总了Java中com.csipsimple.api.SipProfile.CRED_SCHEME_DIGEST属性的典型用法代码示例。如果您正苦于以下问题:Java SipProfile.CRED_SCHEME_DIGEST属性的具体用法?Java SipProfile.CRED_SCHEME_DIGEST怎么用?Java SipProfile.CRED_SCHEME_DIGEST使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.csipsimple.api.SipProfile的用法示例。


在下文中一共展示了SipProfile.CRED_SCHEME_DIGEST属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account.display_name = accountDisplayName.getText();
	account.acc_id = "<sip:" + SipUri.encodeUser(accountUsername.getText().trim()) + "@" + getDomain() + ">";
	
	String regUri = "sip:" + getDomain();
	account.reg_uri = regUri;
	account.proxies = new String[] { "sip:"+accountProxy.getText() } ;

	account.realm = "*";
	account.username = getText(accountAuthorization).trim();
	account.data = getText(accountPassword);
	account.scheme = SipProfile.CRED_SCHEME_DIGEST;
	account.datatype = SipProfile.CRED_DATA_PLAIN_PASSWD;
	account.reg_timeout = 1800;
	account.transport = SipProfile.TRANSPORT_UDP;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:17,代码来源:Broadsoft.java

示例2: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account.display_name = accountDisplayName.getText();
	account.acc_id = "<sip:" + SipUri.encodeUser(accountUsername.getText().trim()) + "@" + getDomain() + ">";
	
	String regUri = "sip:" + getDomain();
	account.reg_uri = regUri;
	account.proxies = new String[] { regUri } ;

	account.realm = "*";
	account.username = getText(accountAuthorization).trim();
	account.data = getText(accountPassword);
	account.scheme = SipProfile.CRED_SCHEME_DIGEST;
	account.datatype = SipProfile.CRED_DATA_PLAIN_PASSWD;
	account.reg_timeout = 1800;
	account.transport = SipProfile.TRANSPORT_UDP;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:17,代码来源:AuthorizationImplementation.java

示例3: buildAccount

public SipProfile buildAccount(SipProfile account) {
	Log.d(THIS_FILE, "begin of save ....");
	account.display_name = accountDisplayName.getText().trim();
	
	String[] serverParts = accountServer.getText().split(":");
	account.acc_id = "<sip:" + SipUri.encodeUser(accountUserName.getText().trim()) + "@"+serverParts[0].trim()+">";
	
	String regUri = "sip:" + accountServer.getText();
	account.reg_uri = regUri;
	account.proxies = new String[] { regUri } ;


	account.realm = "*";
	account.username = getText(accountUserName).trim();
	account.data = getText(accountPassword);
	account.scheme = SipProfile.CRED_SCHEME_DIGEST;
	account.datatype = SipProfile.CRED_DATA_PLAIN_PASSWD;
	//By default auto transport
	account.transport = SipProfile.TRANSPORT_UDP;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:21,代码来源:Basic.java

示例4: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account.display_name = accountDisplayName.getText().trim();
	account.acc_id = accountUsername.getText().trim()+" <sip:"+ accountUsername.getText().trim() + "@voip.sapo.pt:5060>";
	
	account.reg_uri = "sip:proxy.voip.sapo.pt:5070";
	account.proxies = new String[] { "sip:proxy.voip.sapo.pt:5070" } ;

	
	account.realm = "*";
	account.username = getText(accountUsername).trim();
	account.data = getText(accountPassword);
	account.scheme = SipProfile.CRED_SCHEME_DIGEST;
	account.datatype = SipProfile.CRED_DATA_PLAIN_PASSWD;

	account.reg_timeout = 1800;
	
	if(canTcp()) {
		account.transport = accountUseTcp.isChecked() ? SipProfile.TRANSPORT_TCP : SipProfile.TRANSPORT_UDP;
	}else {
		account.transport = SipProfile.TRANSPORT_UDP;
	}
	
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:24,代码来源:Sapo.java

示例5: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account.display_name = accountDisplayName.getText().trim();
	String[] serverParts = getServer().split(":");
	account.acc_id = accountCallerId.getText().trim() + 
		" <sip:" + SipUri.encodeUser(accountUserName.getText().trim()) + "@" + serverParts[0].trim() + ">";
	
	account.reg_uri = "sip:" + getServer();

	account.realm = "*";
	
       account.username = getText(accountAuthId).trim();
       if (TextUtils.isEmpty(account.username)) {
           account.username = getText(accountUserName).trim();
       }
	account.data = getText(accountPassword);
	account.scheme = SipProfile.CRED_SCHEME_DIGEST;
	account.datatype = SipProfile.CRED_DATA_PLAIN_PASSWD;

	account.transport = accountUseTcp.isChecked() ? SipProfile.TRANSPORT_TCP : SipProfile.TRANSPORT_AUTO;
	
	if (!isEmpty(accountProxy)) {
		account.proxies = new String[] { "sip:"+accountProxy.getText().trim() };
	} else {
		account.proxies = null;
	}
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:27,代码来源:Advanced.java

示例6: buildAccount

/**
    * Basic implementation of the account building based on simple implementation fields.
    * A specification of this class could extend and add its own post processing here.
    * 
    * {@inheritDoc}
 */
public SipProfile buildAccount(SipProfile account) {
	account.display_name = accountDisplayName.getText().trim();
	account.acc_id = "<sip:"
			+ SipUri.encodeUser(accountUsername.getText().trim()) + "@"+getDomain()+">";
	
	String regUri = "sip:"+getDomain();
	account.reg_uri = regUri;
	account.proxies = new String[] { regUri } ;

	
	account.realm = "*";
	account.username = getText(accountUsername).trim();
	account.data = getText(accountPassword);
	account.scheme = SipProfile.CRED_SCHEME_DIGEST;
	account.datatype = SipProfile.CRED_DATA_PLAIN_PASSWD;

	account.reg_timeout = 1800;
	
	if(canTcp()) {
		account.transport = accountUseTcp.isChecked() ? SipProfile.TRANSPORT_TCP : SipProfile.TRANSPORT_UDP;
	}else {
		account.transport = SipProfile.TRANSPORT_UDP;
	}
	
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:32,代码来源:SimpleImplementation.java

示例7: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account = super.buildAccount(account);
	String port = "5070";
	
	account.reg_uri = "sip:"+getDomain()+":"+port;


	account.realm = "*";
	account.username = getText(accountUsername);
	account.data = getText(accountPassword);
	account.scheme = SipProfile.CRED_SCHEME_DIGEST;
	account.datatype = 8;
	

	account.proxies = new String[] { "sip:" + getDomain() + ":" + port };
	
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:18,代码来源:MagicJack.java


注:本文中的com.csipsimple.api.SipProfile.CRED_SCHEME_DIGEST属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。