pub struct DomainKey { /* private fields */ }Expand description
A DKIM1 public key record (RFC 6376, Section 3.6.1).
Parsed from the TXT record at <selector>._domainkey.<domain> with
TxtRecordParser::parse; the
verifier fetches it for every signature. Holds the public key (p=, of
type k=) and the t= flags.
Implementations§
Source§impl DomainKey
impl DomainKey
Sourcepub fn is_testing(&self) -> bool
pub fn is_testing(&self) -> bool
Returns true when the record has t=y: the domain is testing DKIM
and verifiers should not treat failures differently from unsigned
mail (RFC 6376, Section 3.6.1).
Sourcepub fn requires_strict_identity(&self) -> bool
pub fn requires_strict_identity(&self) -> bool
Returns true when the record has t=s: the domain of the i= tag
must equal d= exactly, not a subdomain of it (RFC 6376,
Section 3.6.1).
Sourcepub fn has_multiple_records(&self) -> bool
pub fn has_multiple_records(&self) -> bool
Returns true when the name held more than one TXT record. DKIM uses
the first record that parses; DKIM2 treats this as an error
(draft-ietf-dkim-dkim2-spec Section 14.5).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DomainKey
impl !UnwindSafe for DomainKey
impl Freeze for DomainKey
impl Send for DomainKey
impl Sync for DomainKey
impl Unpin for DomainKey
impl UnsafeUnpin for DomainKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more