{
    "mode": "perldoc",
    "parameter": "Net::Amazon::Signature::V4",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3AAmazon%3A%3ASignature%3A%3AV4/json",
    "generated": "2026-10-06T05:38:21Z",
    "synopsis": "use Net::Amazon::Signature::V4;\nmy $sig = Net::Amazon::Signature::V4->new( $accesskeyid, $secret, $endpoint, $service );\nmy $req = HTTP::Request->parse( $requeststring );\nmy $signedreq = $sig->sign( $req );\n...",
    "sections": {
        "NAME": {
            "content": "Net::Amazon::Signature::V4 - Implements the Amazon Web Services signature version 4,\nAWS4-HMAC-SHA256\n",
            "subsections": []
        },
        "VERSION": {
            "content": "Version 0.21\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::Amazon::Signature::V4;\n\nmy $sig = Net::Amazon::Signature::V4->new( $accesskeyid, $secret, $endpoint, $service );\nmy $req = HTTP::Request->parse( $requeststring );\nmy $signedreq = $sig->sign( $req );\n...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module signs an HTTP::Request to Amazon Web Services by appending an Authorization header.\nAmazon Web Services signature version 4, AWS4-HMAC-SHA256, is used.\n\nThe primary purpose of this module is to be used by Net::Amazon::Glacier.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "new\nmy $sig = Net::Amazon::Signature::V4->new( $accesskeyid, $secret, $endpoint, $service );\nmy $sig = Net::Amazon::Signature::V4->new({\naccesskeyid => $accesskeyid,\nsecret        => $secret,\nendpoint      => $endpoint,\nservice       => $service,\n});\n\nConstructs the signature object, which is used to sign requests.\n\nNote that the access key ID is an alphanumeric string, not your account ID. The endpoint could\nbe \"eu-west-1\", and the service could be \"glacier\".\n\nSince version 0.20, parameters can be passed in a hashref. The keys \"accesskeyid\", \"secret\",\n\"endpoint\", and \"service\" are required. \"securitytoken\", if passed, will be applied to each\nsigned request as the \"X-Amz-Security-Token\" header.\n\nsign\nmy $signedrequest = $sig->sign( $request );\n\nSigns a request with your credentials by appending the Authorization header. $request should be\nan HTTP::Request. The signed request is returned.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Tim Nordenfur, \"<tim at gurka.se>\"\n\nMaintained by Dan Book, \"<dbook at cpan.org>\"\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Please report any bugs or feature requests to \"bug-Net-Amazon-Signature-V4 at rt.cpan.org\", or\nthrough the web interface at\n<https://rt.cpan.org/Public/Bug/Report.html?Queue=Net-Amazon-Signature-V4>. I will be notified,\nand then you'll automatically be notified of progress on your bug as I make changes.\n",
            "subsections": []
        },
        "SUPPORT": {
            "content": "You can find documentation for this module with the perldoc command.\n\nperldoc Net::Amazon::Signature::V4\n\nYou can also look for information at:\n\n*   RT: CPAN's request tracker (report bugs here)\n\n<https://rt.cpan.org/Public/Dist/Display.html?Name=Net-Amazon-Signature-V4>\n\n*   Source on GitHub\n\n<https://github.com/Grinnz/Net-Amazon-Signature-V4>\n\n*   Search CPAN\n\n<https://metacpan.org/release/Net-Amazon-Signature-V4>\n",
            "subsections": []
        },
        "LICENSE AND COPYRIGHT": {
            "content": "This software is copyright (c) 2012 by Tim Nordenfur.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "Net::Amazon::Signature::V4 - Implements the Amazon Web Services signature version 4, AWS4-HMAC-SHA256",
    "flags": [],
    "examples": [],
    "see_also": []
}