DnsKeyRecord Constructor
Creates a new instance of the DnsKeyRecord class
Namespace: ARSoft.Tools.Net.DnsAssembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
public DnsKeyRecord(
DomainName name,
RecordClass recordClass,
int timeToLive,
DnsKeyFlags flags,
byte protocol,
DnsSecAlgorithm algorithm,
byte[] publicKey,
byte[]? privateKey = null
)
Public Sub New (
name As DomainName,
recordClass As RecordClass,
timeToLive As Integer,
flags As DnsKeyFlags,
protocol As Byte,
algorithm As DnsSecAlgorithm,
publicKey As Byte(),
Optional privateKey As Byte() = Nothing
)
public:
DnsKeyRecord(
DomainName^ name,
RecordClass recordClass,
int timeToLive,
DnsKeyFlags flags,
unsigned char protocol,
DnsSecAlgorithm algorithm,
array<unsigned char>^ publicKey,
array<unsigned char>^ privateKey = nullptr
)
new :
name : DomainName *
recordClass : RecordClass *
timeToLive : int *
flags : DnsKeyFlags *
protocol : byte *
algorithm : DnsSecAlgorithm *
publicKey : byte[] *
?privateKey : byte[]
(* Defaults:
let _privateKey = defaultArg privateKey null
*)
-> DnsKeyRecord
Parameters
- name DomainName
- Name of the record
- recordClass RecordClass
- Class of the record
- timeToLive Int32
- Seconds the record should be cached at most
- flags DnsKeyFlags
- Flags of the key
- protocol Byte
- Protocol field
- algorithm DnsSecAlgorithm
- Algorithm of the key
- publicKey Byte
- Binary data of the public key
- privateKey Byte (Optional)
- Binary data of the private key