AWS-SNS-Verify
view release on metacpan or search on metacpan
Holder, and derivatives of that collection of files created through
textual modification.
- "Standard Version" refers to such a Package if it has not been modified,
or has been modified in accordance with the wishes of the Copyright
Holder.
- "Copyright Holder" is whoever is named in the copyright or copyrights for
the package.
- "You" is you, if you're thinking about copying or distributing this Package.
- "Reasonable copying fee" is whatever you can justify on the basis of media
cost, duplication charges, time of people involved, and so on. (You will
not be required to justify it to the Copyright Holder, but only to the
computing community at large as a market that must bear the fee.)
- "Freely Available" means that no fee is charged for the item itself, though
there may be fees involved in handling the item. It also means that
recipients of the item may redistribute it under the same conditions they
received it.
1. You may make and give away verbatim copies of the source form of the
Standard Version of this Package without restriction, provided that you
duplicate all of the original copyright notices and associated disclaimers.
lib/AWS/SNS/Verify.pm view on Meta::CPAN
use HTTP::Tiny;
use MIME::Base64;
use Moo;
use Ouch;
use Crypt::PK::RSA;
use URI::URL;
use Data::Structure::Util;
has body => (
is => 'ro',
required => 1,
);
has message => (
is => 'ro',
lazy => 1,
default => sub {
my $self = shift;
return JSON::decode_json($self->body);
}
);
lib/AWS/SNS/Verify.pm view on Meta::CPAN
You should never need to call this, it decodes the base64 signature.
=head2 fetch_certificate
You should never need to call this, it fetches the signing certificate.
=head2 generate_signature_string
You should never need to call this, it generates the signature string required to verify the request.
=head2 valid_cert_url
You should never need to call this, it checks the validity of the certificate signing URL per L<https://github.com/aws/aws-php-sns-message-validator/blob/master/src/MessageValidator.php#L22>
=head1 REQUIREMENTS
Requires Perl 5.12 or higher and these modules:
=over
( run in 0.779 second using v1.01-cache-2.11-cpan-0a6323c29d9 )