Class SIPAuthChallenge
Inheritance
System.Object
SIPAuthChallenge
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.SIP
Assembly: SIPSorcery.dll
Syntax
public static class SIPAuthChallenge
Methods
| Improve this Doc View SourceGetAuthenticationHeader(List<SIPAuthenticationHeader>, SIPURI, SIPMethodsEnum, String, String, DigestAlgorithmsEnum)
Attempts to generate a SIP request authentication header from the most appropriate digest challenge.
Declaration
public static SIPAuthenticationHeader GetAuthenticationHeader(List<SIPAuthenticationHeader> authenticationChallenges, SIPURI uri, SIPMethodsEnum method, string username, string password, DigestAlgorithmsEnum digestAlgorithm = DigestAlgorithmsEnum.MD5)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<SIPAuthenticationHeader> | authenticationChallenges | The challenges to authenticate the request against. Typically the challenges come from a SIP response. |
SIPURI | uri | The URI of the SIP request being authenticated. |
SIPMethodsEnum | method | The method of the SIP request being authenticated. |
System.String | username | The username to authenticate with. |
System.String | password | The password to authenticate with. |
DigestAlgorithmsEnum | digestAlgorithm | The digest algorithm to use in the authentication header. |
Returns
Type | Description |
---|---|
SIPAuthenticationHeader | An authentication header that can be added to a SIP header. |