Liblinphone  5.5.0
Linphone.BearerToken Class Reference
Inheritance diagram for Linphone.BearerToken:
Linphone.LinphoneObject

Properties

long ExpirationTime [get]
 
string Token [get]
 

Additional Inherited Members

- Protected Member Functions inherited from Linphone.LinphoneObject
static String linphone_pointer_to_string (IntPtr ptr)
 
static IntPtr linphone_string_to_pointer ([MarshalAs(LinphoneWrapper.ByteStringMarshalling)] String str)
 
IntPtr StringArrayToBctbxList (IEnumerable< string > stringlist)
 
void CleanStringArrayPtrs (IntPtr l)
 

Detailed Description

Object that represents a bearer token (eg OAUTH).

SIP servers may support "bearer" kind of authentication, in which case an authentication token needs to be supplied in order to authenticate to the SIP service. Applications are responsible to obtain the token from an authentication server. In order to pass it to liblinphone for usage, the token needs to be encapsulated into a Linphone.BearerToken, together with its expiration time and target server name for which it is intended to use, then passed into a Linphone.AuthInfo object. Both access and refresh tokens may be represented. If both are provided to the Linphone.AuthInfo, then liblinphone automatically uses the refresh token to obtain a new access token when the latter is expired.

Property Documentation

long Linphone.BearerToken.ExpirationTime
get

Get the token exiration time, as a number of seconds since EPOCH.

Returns
the expiration time
string Linphone.BearerToken.Token
get

Get the token as a string.

Returns
the token.

The documentation for this class was generated from the following file: