1Mail::DKIM::PublicKey(3U)ser Contributed Perl DocumentatiMoanil::DKIM::PublicKey(3)
2
3
4
6 Mail::DKIM::PublicKey - Represents a DKIM key
7
9 version 1.20200724
10
12 fetch() - retrieve a public key record from DNS
13 my $public_key = Mail::DKIM::PublicKey->fetch(
14 Protocol => 'dns',
15 Selector => 'brisbane',
16 Domain => 'example.com',
17 );
18
19 If the public key is found, a Mail::DKIM::PublicKey object is returned,
20 representing the information found in DNS. If the public key does not
21 exist in DNS, then "undef" is returned. If a DNS error occurs while
22 fetching the key, then this method will "die". If the public key was
23 found, but is not valid (e.g. it is "revoked"), then this method will
24 "die".
25
27 granularity() - get or set the granularity (g=) field
28 my $g = $public_key->granularity;
29
30 $public_key->granularity('*');
31
32 Granularity of the key. The value must match the Local-part of the
33 effective "i=" tag of the DKIM-Signature header field. The granularity
34 is a literal value, or a pattern with a single '*' wildcard character
35 that matches zero or more characters.
36
37 If no granularity is defined, then the default value, '*', will be
38 returned.
39
41 · Jason Long <jason@long.name>
42
43 · Marc Bradshaw <marc@marcbradshaw.net>
44
45 · Bron Gondwana <brong@fastmailteam.com> (ARC)
46
48 Work on ensuring that this module passes the ARC test suite was
49 generously sponsored by Valimail (https://www.valimail.com/)
50
52 · Copyright (C) 2013 by Messiah College
53
54 · Copyright (C) 2010 by Jason Long
55
56 · Copyright (C) 2017 by Standcore LLC
57
58 · Copyright (C) 2020 by FastMail Pty Ltd
59
60 This library is free software; you can redistribute it and/or modify it
61 under the same terms as Perl itself, either Perl version 5.8.6 or, at
62 your option, any later version of Perl 5 you may have available.
63
64
65
66perl v5.32.0 2020-07-28 Mail::DKIM::PublicKey(3)