public interface AuthInfo
AuthInfo
must be added to the Core
in order to become known and used automatically when needed. Use Core.addAuthInfo(org.linphone.core.AuthInfo)
for that purpose.
The Core
object can take the initiative to request authentication
information when needed to the application through the auth_info_requested
callback of the LinphoneCoreVTable structure.
The application can respond to this information request later using Core.addAuthInfo(org.linphone.core.AuthInfo)
. This will unblock all pending authentication transactions
and retry them with authentication headers.Modifier and Type | Method and Description |
---|---|
AuthInfo |
clone()
Instantiates a new auth info with values from source.
|
java.lang.String |
getAlgorithm()
Gets the algorithm.
|
java.lang.String |
getDomain()
Gets the domain.
|
java.lang.String |
getHa1()
Gets the ha1.
|
java.lang.String |
getPasswd()
Deprecated.
, use linphone_auth_info_get_password instead
|
java.lang.String |
getPassword()
Gets the password.
|
java.lang.String |
getRealm()
Gets the realm.
|
java.lang.String |
getTlsCert()
Gets the TLS certificate.
|
java.lang.String |
getTlsCertPath()
Gets the TLS certificate path.
|
java.lang.String |
getTlsKey()
Gets the TLS key.
|
java.lang.String |
getTlsKeyPath()
Gets the TLS key path.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
java.lang.String |
getUserid()
Gets the userid.
|
java.lang.String |
getUsername()
Gets the username.
|
void |
setAlgorithm(java.lang.String algorithm)
Sets the algorithm.
|
void |
setDomain(java.lang.String domain)
Sets the domain for which this authentication is valid.
|
void |
setHa1(java.lang.String ha1)
Sets the ha1.
|
void |
setPasswd(java.lang.String passwd)
Deprecated.
, use linphone_auth_info_set_password instead
|
void |
setPassword(java.lang.String passwd)
Sets the password.
|
void |
setRealm(java.lang.String realm)
Sets the realm.
|
void |
setTlsCert(java.lang.String tlsCert)
Sets the TLS certificate.
|
void |
setTlsCertPath(java.lang.String tlsCertPath)
Sets the TLS certificate path.
|
void |
setTlsKey(java.lang.String tlsKey)
Sets the TLS key.
|
void |
setTlsKeyPath(java.lang.String tlsKeyPath)
Sets the TLS key path.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
void |
setUserid(java.lang.String userid)
Sets the userid.
|
void |
setUsername(java.lang.String username)
Sets the username.
|
java.lang.String getAlgorithm()
void setAlgorithm(java.lang.String algorithm)
algorithm
- The algorithm.java.lang.String getDomain()
void setDomain(java.lang.String domain)
domain
- The domain. This should not be necessary because realm is
supposed to be unique and sufficient. However, many SIP servers don't set realm
correctly, then domain has to be used to distinguish between several SIP
account bearing the same username.java.lang.String getHa1()
void setHa1(java.lang.String ha1)
ha1
- The ha1.@Deprecated java.lang.String getPasswd()
@Deprecated void setPasswd(java.lang.String passwd)
passwd
- The password.java.lang.String getPassword()
void setPassword(java.lang.String passwd)
passwd
- The password.java.lang.String getRealm()
void setRealm(java.lang.String realm)
realm
- The realm.java.lang.String getTlsCert()
void setTlsCert(java.lang.String tlsCert)
tlsCert
- The TLS certificate.java.lang.String getTlsCertPath()
void setTlsCertPath(java.lang.String tlsCertPath)
tlsCertPath
- The TLS certificate path.java.lang.String getTlsKey()
void setTlsKey(java.lang.String tlsKey)
tlsKey
- The TLS key.java.lang.String getTlsKeyPath()
void setTlsKeyPath(java.lang.String tlsKeyPath)
tlsKeyPath
- The TLS key path.java.lang.String getUserid()
void setUserid(java.lang.String userid)
userid
- The userid.java.lang.String getUsername()
void setUsername(java.lang.String username)
username
- The username.AuthInfo clone()
AuthInfo
object.void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()