public interface AuthInfo
AuthInfo
must be added to the Core
Core.addAuthInfo(org.linphone.core.AuthInfo)
Core
object can take the initiative to request authenticationCore.addAuthInfo(org.linphone.core.AuthInfo)
Modifier and Type | Method and Description |
---|---|
void |
addAvailableAlgorithm(java.lang.String algorithm)
Add an unique algorithm in the the available algorithms list : Algorithms that
already exist will not be added. |
void |
clearAvailableAlgorithms()
Remove all algorithms from the available algorithms list.
|
AuthInfo |
clone()
Instantiates a new auth info with values from source.
|
java.lang.String |
getAlgorithm()
Gets the algorithm.
|
java.lang.String[] |
getAvailableAlgorithms()
Gets all available algorithms.
|
java.lang.String |
getDomain()
Gets the domain.
|
java.lang.String |
getHa1()
Gets the ha1.
|
long |
getNativePointer()
Gets the native pointer used by this class to make native method calls.
|
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 user id.
|
java.lang.String |
getUsername()
Gets the username.
|
boolean |
isEqualButAlgorithms(AuthInfo authInfo2)
Check if Authinfos are the same without taking account algorithms.
|
void |
setAlgorithm(java.lang.String algorithm)
Sets the algorithm to use.
|
void |
setAvailableAlgorithms(java.lang.String[] algorithms)
Sets the available algorithms list without testing unicity.
|
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 |
setPassword(java.lang.String password)
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 user ID.
|
void |
setUsername(java.lang.String username)
Sets the username.
|
java.lang.String |
toString() |
@Nullable java.lang.String getAlgorithm()
void setAlgorithm(@Nullable java.lang.String algorithm)
algorithm
- The algorithm. @NonNull java.lang.String[] getAvailableAlgorithms()
void setAvailableAlgorithms(@Nullable java.lang.String[] algorithms)
algorithms
- The available algorithms list. @Nullable java.lang.String getDomain()
void setDomain(@Nullable java.lang.String domain)
domain
- The domain. This should not be necessary because realm is@Nullable java.lang.String getHa1()
void setHa1(@Nullable java.lang.String ha1)
ha1
- The ha1. @Nullable java.lang.String getPassword()
void setPassword(@Nullable java.lang.String password)
password
- The password. @Nullable java.lang.String getRealm()
void setRealm(@Nullable java.lang.String realm)
realm
- The realm. @Nullable java.lang.String getTlsCert()
void setTlsCert(@Nullable java.lang.String tlsCert)
tlsCert
- The TLS certificate. @Nullable java.lang.String getTlsCertPath()
void setTlsCertPath(@Nullable java.lang.String tlsCertPath)
tlsCertPath
- The TLS certificate path. @Nullable java.lang.String getTlsKey()
void setTlsKey(@Nullable java.lang.String tlsKey)
tlsKey
- The TLS key. @Nullable java.lang.String getTlsKeyPath()
void setTlsKeyPath(@Nullable java.lang.String tlsKeyPath)
tlsKeyPath
- The TLS key path. @Nullable java.lang.String getUserid()
void setUserid(@Nullable java.lang.String userId)
userId
- The userid. @Nullable java.lang.String getUsername()
void setUsername(@Nullable java.lang.String username)
username
- The username. void addAvailableAlgorithm(@Nullable java.lang.String algorithm)
algorithm
- The algorithm to add. void clearAvailableAlgorithms()
@NonNull AuthInfo clone()
AuthInfo
object. boolean isEqualButAlgorithms(@Nullable AuthInfo authInfo2)
authInfo2
- The second AuthInfo
object. void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object