1Mail::DKIM::PublicKey(3U)ser Contributed Perl DocumentatiMoanil::DKIM::PublicKey(3)
2
3
4

CONSTRUCTOR

6   fetch() - retrieve a public key record from DNS
7         my $public_key = Mail::DKIM::PublicKey->fetch(
8                             Protocol => "dns",
9                             Selector => "brisbane",
10                             Domain => "example.com",
11                           );
12
13       If the public key is found, a Mail::DKIM::PublicKey object is returned,
14       representing the information found in DNS.  If the public key does not
15       exist in DNS, then "undef" is returned.  If a DNS error occurs while
16       fetching the key, then this method will "die".  If the public key was
17       found, but is not valid (e.g. it is "revoked"), then this method will
18       "die".
19

METHODS

21   granularity() - get or set the granularity (g=) field
22         my $g = $public_key->granularity;
23
24         $public_key->granularity("*");
25
26       Granularity of the key. The value must match the Local-part of the
27       effective "i=" tag of the DKIM-Signature header field.  The granularity
28       is a literal value, or a pattern with a single '*' wildcard character
29       that matches zero or more characters.
30
31       If no granularity is defined, then the default value, '*', will be
32       returned.
33
34
35
36perl v5.12.2                      2010-01-23          Mail::DKIM::PublicKey(3)
Impressum