Skip to main content

DigestAuthFunctions

Assembly: ServiceStack.dll
View Source
Declaration
public class DigestAuthFunctions

Methods

PrivateHashEncode(String, String, String)

View Source
Declaration
public string PrivateHashEncode(string TimeStamp, string IPAddress, string PrivateKey)
Returns

System.String

Parameters
TypeName
System.StringTimeStamp
System.StringIPAddress
System.StringPrivateKey

Base64Encode(String)

View Source
Declaration
public string Base64Encode(string StringToEncode)
Returns

System.String

Parameters
TypeName
System.StringStringToEncode

Base64Decode(String)

View Source
Declaration
public string Base64Decode(string StringToDecode)
Returns

System.String

Parameters
TypeName
System.StringStringToDecode

GetNonceParts(String)

View Source
Declaration
public string[] GetNonceParts(string nonce)
Returns

System.String[]

Parameters
TypeName
System.Stringnonce

GetNonce(String, String)

View Source
Declaration
public string GetNonce(string IPAddress, string PrivateKey)
Returns

System.String

Parameters
TypeName
System.StringIPAddress
System.StringPrivateKey

ValidateNonce(String, String, String)

View Source
Declaration
public bool ValidateNonce(string nonce, string IPAddress, string PrivateKey)
Returns

System.Boolean

Parameters
TypeName
System.Stringnonce
System.StringIPAddress
System.StringPrivateKey

StaleNonce(String, Int32)

View Source
Declaration
public bool StaleNonce(string nonce, int Timeout)
Returns

System.Boolean

Parameters
TypeName
System.Stringnonce
System.Int32Timeout

ConvertToHexString(IEnumerable<Byte>)

View Source
Declaration
public string ConvertToHexString(IEnumerable<byte> hash)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.Byte>hash

CreateAuthResponse(Dictionary<String, String>, String)

View Source
Declaration
public string CreateAuthResponse(Dictionary<string, string> digestHeaders, string Ha1)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.String>digestHeaders
System.StringHa1

CreateAuthResponse(Dictionary<String, String>, String, String)

View Source
Declaration
public string CreateAuthResponse(Dictionary<string, string> digestHeaders, string Ha1, string Ha2)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.String>digestHeaders
System.StringHa1
System.StringHa2

CreateHa1(Dictionary<String, String>, String)

View Source
Declaration
public string CreateHa1(Dictionary<string, string> digestHeaders, string password)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.String>digestHeaders
System.Stringpassword

CreateHa1(String, String, String)

View Source
Declaration
public string CreateHa1(string Username, string Realm, string Password)
Returns

System.String

Parameters
TypeName
System.StringUsername
System.StringRealm
System.StringPassword

CreateHa2(Dictionary<String, String>)

View Source
Declaration
public string CreateHa2(Dictionary<string, string> digestHeaders)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.String>digestHeaders

ValidateResponse(Dictionary<String, String>, String, Int32, String, String)

View Source
Declaration
public bool ValidateResponse(Dictionary<string, string> digestInfo, string PrivateKey, int NonceTimeOut, string DigestHA1, string sequence)
Returns

System.Boolean

Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.String>digestInfo
System.StringPrivateKey
System.Int32NonceTimeOut
System.StringDigestHA1
System.Stringsequence