class DnsSecApiProvider implements DnssecProvider (View source)

Methods

__construct(PowerdnsApiClient $client, LegacyLoggerInterface $logger, DnssecDataTransformer $transformer, string $clientIp, string $userLogin)

No description

bool
rectifyZone(string $zoneName)

No description

bool
secureZone(string $zoneName)

No description

bool
unsecureZone(string $zoneName)

No description

bool
isZoneSecured(string $zoneName, $config)

No description

bool
isZonePresigned(string $zoneName)

Whether the zone carries the PRESIGNED metadata, meaning it was signed at the primary server and DNSSEC cannot be managed locally.

array
getDsRecords(string $zoneName)

No description

array
getDnsKeyRecords(string $zoneName)

No description

bool
activateZoneKey(string $zoneName, int $keyId)

No description

bool
deactivateZoneKey(string $zoneName, int $keyId)

No description

array
getKeys(string $zoneName)

No description

bool
addZoneKey(string $zoneName, string $keyType, int $keySize, string $algorithm)

No description

bool
removeZoneKey(string $zoneName, int $keyId)

No description

bool
keyExists(string $zoneName, int $keyId)

No description

array
getZoneKey(string $zoneName, int $keyId)

No description

bool
isDnssecEnabled()

No description

int|null
getEditedSerial(string $zoneName)

Serial as served by PowerDNS with SOA-EDIT applied (the "signed" serial), or null when the server does not expose it or the zone cannot be read.

bool
importZoneKey(string $zoneName, string $keyType, string $algorithm, string $privateKeyPem)

Import a DNSSEC key from a PEM-encoded private key. Requires PowerDNS 4.7+; older servers should return false. Implementations that do not back onto the PowerDNS API may also return false.

string|null
exportZoneKeyPem(string $zoneName, int $keyId)

Export the PEM-encoded private key for an existing cryptokey, or null when the server does not support PEM export (pre-4.7) or the key cannot be read.

Details

__construct(PowerdnsApiClient $client, LegacyLoggerInterface $logger, DnssecDataTransformer $transformer, string $clientIp, string $userLogin)

No description

Parameters

PowerdnsApiClient $client
LegacyLoggerInterface $logger
DnssecDataTransformer $transformer
string $clientIp
string $userLogin

bool rectifyZone(string $zoneName)

No description

Parameters

string $zoneName

Return Value

bool

bool secureZone(string $zoneName)

No description

Parameters

string $zoneName

Return Value

bool

bool unsecureZone(string $zoneName)

No description

Parameters

string $zoneName

Return Value

bool

bool isZoneSecured(string $zoneName, $config)

No description

Parameters

string $zoneName
$config

Return Value

bool

bool isZonePresigned(string $zoneName)

Whether the zone carries the PRESIGNED metadata, meaning it was signed at the primary server and DNSSEC cannot be managed locally.

Parameters

string $zoneName

Return Value

bool

array getDsRecords(string $zoneName)

No description

Parameters

string $zoneName

Return Value

array

array getDnsKeyRecords(string $zoneName)

No description

Parameters

string $zoneName

Return Value

array

bool activateZoneKey(string $zoneName, int $keyId)

No description

Parameters

string $zoneName
int $keyId

Return Value

bool

bool deactivateZoneKey(string $zoneName, int $keyId)

No description

Parameters

string $zoneName
int $keyId

Return Value

bool

array getKeys(string $zoneName)

No description

Parameters

string $zoneName

Return Value

array

bool addZoneKey(string $zoneName, string $keyType, int $keySize, string $algorithm)

No description

Parameters

string $zoneName
string $keyType
int $keySize
string $algorithm

Return Value

bool

bool removeZoneKey(string $zoneName, int $keyId)

No description

Parameters

string $zoneName
int $keyId

Return Value

bool

bool keyExists(string $zoneName, int $keyId)

No description

Parameters

string $zoneName
int $keyId

Return Value

bool

array getZoneKey(string $zoneName, int $keyId)

No description

Parameters

string $zoneName
int $keyId

Return Value

array

bool isDnssecEnabled()

No description

Return Value

bool

int|null getEditedSerial(string $zoneName)

Serial as served by PowerDNS with SOA-EDIT applied (the "signed" serial), or null when the server does not expose it or the zone cannot be read.

Parameters

string $zoneName

Return Value

int|null

bool importZoneKey(string $zoneName, string $keyType, string $algorithm, string $privateKeyPem)

Import a DNSSEC key from a PEM-encoded private key. Requires PowerDNS 4.7+; older servers should return false. Implementations that do not back onto the PowerDNS API may also return false.

Parameters

string $zoneName
string $keyType
string $algorithm
string $privateKeyPem

Return Value

bool

string|null exportZoneKeyPem(string $zoneName, int $keyId)

Export the PEM-encoded private key for an existing cryptokey, or null when the server does not support PEM export (pre-4.7) or the key cannot be read.

Parameters

string $zoneName
int $keyId

Return Value

string|null