1Net::Amazon::S3::SignatUusreer::CVo4nItmrNpielbteu:mt:eeAndmtaaPzteoirnol:n:(DS3o3)c:u:mSeingtnaattiuorne::V4Implementation(3)
2
3
4
6 Net::Amazon::S3::Signature::V4Implementation - Implements the Amazon
7 Web Services signature version 4, AWS4-HMAC-SHA256 (copy of
8 Net::Amazon::Signature::V4)
9
11 version 0.86
12
14 This module signs an HTTP::Request to Amazon Web Services by appending
15 an Authorization header. Amazon Web Services signature version 4,
16 AWS4-HMAC-SHA256, is used.
17
18 use Net::Amazon::Signature::V4;
19
20 my $sig = Net::Amazon::Signature::V4->new( $access_key_id, $secret, $endpoint, $service );
21 my $req = HTTP::Request->parse( $request_string );
22 my $signed_req = $sig->sign( $req );
23 ...
24
25 The primary purpose of this module is to be used by
26 Net::Amazon::Glacier.
27
29 Version 0.19
30
32 new( $access_key_id, $secret, $endpoint, $service )
33 Constructs the signature object, which is used to sign requests.
34
35 Note that the access key ID is an alphanumeric string, not your account
36 ID. The endpoint could be "eu-west-1", and the service could be
37 "glacier".
38
39 sign( $request )
40 Signs a request with your credentials by appending the Authorization
41 header. $request should be an HTTP::Request. The signed request is
42 returned.
43
44 sign_uri( $uri, $expires_in? )
45 Signs an uri with your credentials by appending the Authorization query
46 parameters.
47
48 $expires_in integer value in range 1..604800 (1 second .. 7 days).
49
50 $expires_in default value is its maximum: 604800
51
52 The signed uri is returned.
53
55 Tim Nordenfur, "<tim at gurka.se>"
56
57 Maintained by Dan Book, "<dbook at cpan.org>"
58
60 Please report any bugs or feature requests to
61 "bug-net-amazon-signature-v4 at rt.cpan.org", or through the web
62 interface at
63 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Amazon-Signature-V4>.
64 I will be notified, and then you'll automatically be notified of
65 progress on your bug as I make changes.
66
68 You can find documentation for this module with the perldoc command.
69
70 perldoc Net::Amazon::Signature::V4
71
72 You can also look for information at:
73
74 · RT: CPAN's request tracker (report bugs here)
75
76 <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Amazon-Signature-V4>
77
78 · AnnoCPAN: Annotated CPAN documentation
79
80 <http://annocpan.org/dist/Net-Amazon-Signature-V4>
81
82 · CPAN Ratings
83
84 <http://cpanratings.perl.org/d/Net-Amazon-Signature-V4>
85
86 · Search CPAN
87
88 <http://search.cpan.org/dist/Net-Amazon-Signature-V4/>
89
91 Copyright 2012 Tim Nordenfur.
92
93 This program is free software; you can redistribute it and/or modify it
94 under the terms of either: the GNU General Public License as published
95 by the Free Software Foundation; or the Artistic License.
96
97 See http://dev.perl.org/licenses/ for more information.
98
100 Leo Lapworth <llap@cpan.org>
101
103 This software is copyright (c) 2019 by Amazon Digital Services, Leon
104 Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover.
105
106 This is free software; you can redistribute it and/or modify it under
107 the same terms as the Perl 5 programming language system itself.
108
109
110
111perl v5.28.1 Net2:0:1A9m-a0z4o-n1:2:S3::Signature::V4Implementation(3)