C# Class DnDns.Security.TsigMessageSecurityProvider

Implements TSIG signing of DNS messages as per RFC2845
This class only supports the one hashing algorithim, hmac-sha256. It would be trivial to add more.
Inheritance: IMessageSecurityProvider
Exibir arquivo Open project: nachocove/DnDns Class Usage Examples

Public Methods

Method Description
SecureMessage ( DnsQueryRequest dnsQueryRequest ) : DnsQueryRequest

Apply a TSIG record to the request message.

TsigMessageSecurityProvider ( string name, string sharedKey, ushort fudge ) : System

Initalise the TsigMessageSecurityProvider

Method Details

SecureMessage() public method

Apply a TSIG record to the request message.
public SecureMessage ( DnsQueryRequest dnsQueryRequest ) : DnsQueryRequest
dnsQueryRequest DnDns.Query.DnsQueryRequest The to add the security headers too.
return DnDns.Query.DnsQueryRequest

TsigMessageSecurityProvider() public method

Initalise the TsigMessageSecurityProvider
public TsigMessageSecurityProvider ( string name, string sharedKey, ushort fudge ) : System
name string The name of the shared key
sharedKey string The shared key in base64 string format
fudge ushort The signing time fudge value
return System