|
|
| AuthInfo (void *ptr, bool takeRef=true) |
| |
|
LINPHONECXX_PUBLIC _LinphoneAuthInfo * | cPtr () |
| |
| LINPHONECXX_PUBLIC std::string | getAlgorithm () const |
| | Gets the algorithm. More...
|
| |
| LINPHONECXX_PUBLIC void | setAlgorithm (const std::string &algorithm) |
| | Sets the algorithm to use. More...
|
| |
| LINPHONECXX_PUBLIC std::list< std::string > | getAvailableAlgorithms () const |
| | Gets all available algorithms. More...
|
| |
| LINPHONECXX_PUBLIC void | setAvailableAlgorithms (const std::list< std::string > &algorithms) |
| | Sets the available algorithms list without testing unicity. More...
|
| |
| LINPHONECXX_PUBLIC std::string | getDomain () const |
| | Gets the domain. More...
|
| |
| LINPHONECXX_PUBLIC void | setDomain (const std::string &domain) |
| | Sets the domain for which this authentication is valid. More...
|
| |
| LINPHONECXX_PUBLIC std::string | getHa1 () const |
| | Gets the ha1. More...
|
| |
| LINPHONECXX_PUBLIC void | setHa1 (const std::string &ha1) |
| | Sets the ha1. More...
|
| |
| LINPHONECXX_PUBLIC std::string | getPassword () const |
| | Gets the password. More...
|
| |
| LINPHONECXX_PUBLIC void | setPassword (const std::string &password) |
| | Sets the password. More...
|
| |
| LINPHONECXX_PUBLIC std::string | getRealm () const |
| | Gets the realm. More...
|
| |
| LINPHONECXX_PUBLIC void | setRealm (const std::string &realm) |
| | Sets the realm. More...
|
| |
| LINPHONECXX_PUBLIC std::string | getTlsCert () const |
| | Gets the TLS certificate. More...
|
| |
| LINPHONECXX_PUBLIC void | setTlsCert (const std::string &tlsCert) |
| | Sets the TLS certificate. More...
|
| |
| LINPHONECXX_PUBLIC std::string | getTlsCertPath () const |
| | Gets the TLS certificate path. More...
|
| |
| LINPHONECXX_PUBLIC void | setTlsCertPath (const std::string &tlsCertPath) |
| | Sets the TLS certificate path. More...
|
| |
| LINPHONECXX_PUBLIC std::string | getTlsKey () const |
| | Gets the TLS key. More...
|
| |
| LINPHONECXX_PUBLIC void | setTlsKey (const std::string &tlsKey) |
| | Sets the TLS key. More...
|
| |
| LINPHONECXX_PUBLIC std::string | getTlsKeyPath () const |
| | Gets the TLS key path. More...
|
| |
| LINPHONECXX_PUBLIC void | setTlsKeyPath (const std::string &tlsKeyPath) |
| | Sets the TLS key path. More...
|
| |
| LINPHONECXX_PUBLIC std::string | getUserid () const |
| | Gets the user id. More...
|
| |
| LINPHONECXX_PUBLIC void | setUserid (const std::string &userId) |
| | Sets the user ID. More...
|
| |
| LINPHONECXX_PUBLIC std::string | getUsername () const |
| | Gets the username. More...
|
| |
| LINPHONECXX_PUBLIC void | setUsername (const std::string &username) |
| | Sets the username. More...
|
| |
| LINPHONECXX_PUBLIC void | addAvailableAlgorithm (const std::string &algorithm) |
| | Add an unique algorithm in the the available algorithms list : Algorithms that already exist will not be added. More...
|
| |
|
LINPHONECXX_PUBLIC void | clearAvailableAlgorithms () |
| | Remove all algorithms from the available algorithms list.
|
| |
| LINPHONECXX_PUBLIC std::shared_ptr< linphone::AuthInfo > | clone () const |
| | Instantiates a new auth info with values from source. More...
|
| |
| LINPHONECXX_PUBLIC bool | isEqualButAlgorithms (const std::shared_ptr< const linphone::AuthInfo > &authInfo2) const |
| | Check if Authinfos are the same without taking account algorithms. More...
|
| |
Object holding authentication information.
In most case, authentication information consists of a username and password. If realm isn't set, it will be deduced automatically from the first authentication challenge as for the hash algorithm. Sometimes, a userid is required by the proxy and then domain can be useful to discriminate different credentials. You can also use this object if you need to use a client certificate. Once created and filled, a AuthInfo must be added to the Core in order to become known and used automatically when needed. Use Core::addAuthInfo() for that purpose. The Core object can take the initiative to request authentication information when needed to the application through the authentication_requested() callback of it's LinphoneCoreCbs. The application can respond to this information request later using Core::addAuthInfo(). This will unblock all pending authentication transactions and retry them with authentication headers.