final class Base64BlobValidator (View source)

Validator for opaque RDATA stored as base64 in zone-file form (PowerDNS xfrBlob).

Whitespace inside the encoded value is permitted (zone files often line-wrap long blobs) and stripped before decoding. Reuses across record types whose RDATA is an arbitrary binary blob: HHIT, BRID, etc.

On success returns the whitespace-stripped, normalised encoding so callers store exactly what was validated (not the raw input which may contain control characters that survive the regex check).

Constants

private MAX_ENCODED_LENGTH

Methods

validate(string $content, string $failureMessage)

No description

Details

static ValidationResult validate(string $content, string $failureMessage)

No description

Parameters

string $content
string $failureMessage

Return Value

ValidationResult