You are viewing the documentation for an older major version of the AWS SDK for JavaScript.
The modular AWS SDK for JavaScript (v3), the latest major version of AWS SDK for JavaScript, is now stable and recommended for general use.
For more information, see the
Migration Guide and
API Reference.
Class: AWS.CloudFront.Signer
- Inherits:
-
Object
- Object
- AWS.CloudFront.Signer
- Defined in:
- lib/cloudfront/signer.js
Constructor Summary collapse
-
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 collapse
-
getSignedCookie(options, cb) ⇒ Object?
Create a signed Amazon CloudFront Cookie.
-
getSignedUrl(options, cb) ⇒ String?
Create a signed Amazon CloudFront URL.
Constructor Details
new AWS.CloudFront.Signer(keyPairId, privateKey) ⇒ void
A signer object can be used to generate signed URLs and cookies for granting access to content on restricted CloudFront distributions.
Method Details
getSignedCookie(options, cb) ⇒ Object?
Create a signed Amazon CloudFront Cookie.
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: