aws_cloudfront_signed_url_null_saftey 0.0.2 copy "aws_cloudfront_signed_url_null_saftey: ^0.0.2" to clipboard
aws_cloudfront_signed_url_null_saftey: ^0.0.2 copied to clipboard

Create a signed AWS cloudfront url using a custom policy

aws_cloudfront_signed_url_null_saftey #

version 2.0: Updated to support null saftey

Create a signed AWS CloudFront URL using a custom policy

Example #

final String privateKey = """-----BEGIN RSA PRIVATE KEY-----
Key123
-----END RSA PRIVATE KEY-----""";
String url = 'http://d111111abcdef8.cloudfront.net/images/horizon.jpg';
String cloudFrontSignedUrl = await AWSCloudFrontSignedUrl(
  keyPairId: "K2JCJMDEHXQW5F",
  privateKey: privateKey,
).signUrl(
  resourceUrl: url,
  ipAddress: "0.0.0.0/32",
  dateLessThan: DateTime(2022,3,1),
  dateGreaterThan: DateTime(2021,3,1),
);
0
likes
130
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

Create a signed AWS cloudfront url using a custom policy

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, pointycastle, rsa_encrypt

More

Packages that depend on aws_cloudfront_signed_url_null_saftey