class CryptoKey (View source)

A DNSSEC key of a zone: id, type (ksk/zsk/csk), size, algorithm, active flag, DNSKEY and DS records.

Methods

__construct(int|null $id, string|null $type = null, int|null $size = null, string|null $algorithm = null, bool $isActive = false, string|null $dnskey = null, array|null $ds = null)

No description

int|null
getId()

No description

string|null
getType()

No description

int|null
getSize()

No description

string|null
getAlgorithm()

No description

bool
isActive()

No description

void
activate()

No description

void
deactivate()

No description

string|null
getDnskey()

No description

array
getDs()

No description

int
getAlgorithmId()

The algorithm number of the DNSKEY record, or 0 without one.

bool|null
isSecureEntryPoint()

Whether the DNSKEY carries the SEP flag (257), or null without a readable one.

int
getKeyTag()

The key tag of the DNSKEY record (RFC 4034, appendix B), or 0 without a readable one. Computed rather than read off a DS record, which a ZSK lacks.

Details

__construct(int|null $id, string|null $type = null, int|null $size = null, string|null $algorithm = null, bool $isActive = false, string|null $dnskey = null, array|null $ds = null)

No description

Parameters

int|null $id
string|null $type
int|null $size
string|null $algorithm
bool $isActive
string|null $dnskey
array|null $ds

int|null getId()

No description

Return Value

int|null

string|null getType()

No description

Return Value

string|null

int|null getSize()

No description

Return Value

int|null

string|null getAlgorithm()

No description

Return Value

string|null

bool isActive()

No description

Return Value

bool

void activate()

No description

Return Value

void

void deactivate()

No description

Return Value

void

string|null getDnskey()

No description

Return Value

string|null

array getDs()

No description

Return Value

array

int getAlgorithmId()

The algorithm number of the DNSKEY record, or 0 without one.

Return Value

int

bool|null isSecureEntryPoint()

Whether the DNSKEY carries the SEP flag (257), or null without a readable one.

PowerDNS stores only this; it derives ksk/zsk/csk from the other active keys on every read.

Return Value

bool|null

int getKeyTag()

The key tag of the DNSKEY record (RFC 4034, appendix B), or 0 without a readable one. Computed rather than read off a DS record, which a ZSK lacks.

Return Value

int