DigestAuthenticationPolicy
public class DigestAuthenticationPolicy : LinphoneObject
The LinphoneDigestAuthenticationPolicy holds parameters relative to digest/// authentication procedures.
-
Undocumented
Declaration
Swift
public static func getSwiftObject(cObject: OpaquePointer) -> DigestAuthenticationPolicy
-
Undocumented
Declaration
Swift
public var getCobject: OpaquePointer? { get }
-
Set whether MD5 hash algorithm is allowed. The default value is true, in order to maximize interoperability. MD5 is considered as a weak algorithm, some might want to disable it, in which case SHA-256 will be required to perform digest authentication.
Declaration
Swift
public var allowMd5: Bool { get set }
Parameters
value
a boolean value. Get whether MD5 hash algorithm is allowed. The default value is true, in order to maximize interoperability. MD5 is considered as a weak algorithm, some might want to disable it, in which case SHA-256 will be required to perform digest authentication.
Return Value
a boolean value
-
Set whether digest authentication without ‘qop=auth’ mode is allowed. The default value is true, in order to maximize interoperability. ‘qop=auth’ mode enforces security thanks to the use of a client nonce, which makes password brute forcing more difficult. When set to false, linphone will refuse to authenticate to servers that are not implementing the qop=auth mode.
Declaration
Swift
public var allowNoQop: Bool { get set }
Parameters
value
a boolean value. Get whether digest authentication without ‘qop=auth’ mode is allowed. The default value is true, in order to maximize interoperability. ‘qop=auth’ mode enforces security thanks to the use of a client nonce, which makes password brute forcing more difficult. When set to false, linphone will refuse to authenticate to servers that are not implementing the qop=auth mode.
Return Value
a boolean value
-
Assign a user pointer to the
DigestAuthenticationPolicy
object.Declaration
Swift
public var userData: UnsafeMutableRawPointer? { get set }
Parameters
userData
The user pointer.
Retrieve the user pointer associated with theDigestAuthenticationPolicy
object.Return Value
The user pointer.