DnsKeyRecordCreateSigningKey Method
Creates a new signing key pair
Namespace: ARSoft.Tools.Net.DnsAssembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
public static DnsKeyRecord CreateSigningKey(
DomainName name,
RecordClass recordClass,
int timeToLive,
DnsKeyFlags flags,
byte protocol,
DnsSecAlgorithm algorithm,
int keyStrength = 0
)
Public Shared Function CreateSigningKey (
name As DomainName,
recordClass As RecordClass,
timeToLive As Integer,
flags As DnsKeyFlags,
protocol As Byte,
algorithm As DnsSecAlgorithm,
Optional keyStrength As Integer = 0
) As DnsKeyRecord
public:
static DnsKeyRecord^ CreateSigningKey(
DomainName^ name,
RecordClass recordClass,
int timeToLive,
DnsKeyFlags flags,
unsigned char protocol,
DnsSecAlgorithm algorithm,
int keyStrength = 0
)
static member CreateSigningKey :
name : DomainName *
recordClass : RecordClass *
timeToLive : int *
flags : DnsKeyFlags *
protocol : byte *
algorithm : DnsSecAlgorithm *
?keyStrength : int
(* Defaults:
let _keyStrength = defaultArg keyStrength 0
*)
-> DnsKeyRecord
- name DomainName
- The name of the key or zone
- recordClass RecordClass
- The record class of the DnsKeyRecord
- timeToLive Int32
- The TTL in seconds to the DnsKeyRecord
- flags DnsKeyFlags
- The Flags of the DnsKeyRecord
- protocol Byte
- The protocol version
- algorithm DnsSecAlgorithm
- The key algorithm
- keyStrength Int32 (Optional)
- The key strength or 0 for default strength
DnsKeyRecordA new instance of
DnsKeyRecord with a new created key pair/>