本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}