Class TKEYRecord
Shared secret key.
Inherited Members
Namespace: Makaretu.Dns
Assembly: Makaretu.Dns.dll
Syntax
public class TKEYRecord : ResourceRecord, IWireSerialiser, ICloneable, IPresentationSerialiser
Remarks
Defined in RFC 2930.
Constructors
| Improve this Doc View SourceTKEYRecord()
Creates a new instance of the TKEYRecord class.
Declaration
public TKEYRecord()
Properties
| Improve this Doc View SourceAlgorithm
Identifies the cryptographic algorithm to create.
Declaration
public DomainName Algorithm { get; set; }
Property Value
| Type | Description |
|---|---|
| DomainName | Identifies the HMAC alogirthm. |
Remarks
The algorithm determines how the secret keying material agreed to using the TKEY RR is actually used to derive the algorithm specific key.
See Also
| Improve this Doc View SourceError
Expanded error code for TKEY.
Declaration
public MessageStatus Error { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageStatus |
Expiration
The end date for the Key.
Declaration
public DateTime Expiration { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime | Resolution in seconds. |
Inception
The start date for the Key.
Declaration
public DateTime Inception { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime | Resolution in seconds. |
Key
The key exchange data.
Declaration
public byte[] Key { get; set; }
Property Value
| Type | Description |
|---|---|
| Byte[] | The format depends on the Mode. |
Mode
The key exchange algorithm.
Declaration
public KeyExchangeMode Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| KeyExchangeMode | One of the KeyExchangeMode values. |
OtherData
Other data.
Declaration
public byte[] OtherData { get; set; }
Property Value
| Type | Description |
|---|---|
| Byte[] |
Methods
| Improve this Doc View SourceReadData(PresentationReader)
Read the textual representation of the data that is specific to the resource record Type.
Declaration
public override void ReadData(PresentationReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| PresentationReader | reader | The source of the resource record's data. |
Overrides
Remarks
Derived classes must implement this method.
ReadData(WireReader, Int32)
Read the data that is specific to the resource record Type.
Declaration
public override void ReadData(WireReader reader, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| WireReader | reader | The source of the resource record's data. |
| Int32 | length | The length, in bytes, of the data. |
Overrides
Remarks
Derived classes must implement this method.
WriteData(PresentationWriter)
Write the textual representation of the data that is specific to the resource record.
Declaration
public override void WriteData(PresentationWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| PresentationWriter | writer | The destination for the resource record's data. |
Overrides
Remarks
Derived classes should implement this method.
By default, this will write the hex encoding of the GetData() preceeded by "#" and the number integer bytes.
WriteData(WireWriter)
Write the data that is specific to the resource record Type.
Declaration
public override void WriteData(WireWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| WireWriter | writer | The destination for the DNS object's data. |
Overrides
Remarks
Derived classes must implement this method.