lib/cloudfront/signer.js
function Signer(keyPairId, privateKey) {
        if (keyPairId === void 0 || privateKey === void 0) {
            throw new Error('A key pair ID and private key are required');
        }

        this.keyPairId = keyPairId;
        this.privateKey = privateKey;
    }
function Signer(keyPairId, privateKey) {
        if (keyPairId === void 0 || privateKey === void 0) {
            throw new Error('A key pair ID and private key are required');
        }

        this.keyPairId = keyPairId;
        this.privateKey = privateKey;
    }
function Signer ( keyPairId , privateKey ) { if ( keyPairId === void 0 || privateKey === void 0 ) { throw new Error ( 'A key pair ID and private key are required' ) ; } this . keyPairId = keyPairId ; this . privateKey = privateKey ; }
A signer object can be used to generate signed URLs and cookies for granting
access to content on restricted CloudFront distributions.

@see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html

@param keyPairId [String]    (Required) The ID of the CloudFront key pair
being used.
@param privateKey [String]   (Required) A private key in RSA format.
A signer object can be used to generate signed URLs and cookies for granting access to content on restricted CloudFront distributions .