Note: You are viewing the documentation for an older major version of the AWS SDK for JavaScript (v2).
The modular AWS SDK for JavaScript (v3) is now General Available. For more information see the Developer Guide or API Reference.
Class: AWS.CloudFront.Signer
- Inherits:
-
Object
- Object
- AWS.CloudFront.Signer
- Defined in:
- lib/cloudfront/signer.js
Constructor Summary
-
new AWS.CloudFront.Signer(keyPairId, privateKey) ⇒ void
constructor
A signer object can be used to generate signed URLs and cookies for granting access to content on restricted CloudFront distributions.
Method Summary
-
getSignedCookie(options, cb) ⇒ Object?
Create a signed Amazon CloudFront Cookie.
-
getSignedUrl(options, cb) ⇒ String?
Create a signed Amazon CloudFront URL.
Constructor Details
Method Details
getSignedUrl(options, cb) ⇒ String?
Create a signed Amazon CloudFront URL.
Keep in mind that URLs meant for use in media/flash players may have
different requirements for URL formats (e.g. some require that the
extension be removed, some require the file name to be prefixed
- mp4: