Amazon.CloudFront.AmazonCloudFrontUrlSigner.GetCannedSignedURL C# (CSharp) Метод

GetCannedSignedURL() публичный статический Метод

Returns a signed URL that grants universal access to private content until a given date.
public static GetCannedSignedURL ( Protocol protocol, string distributionDomain, FileSystemInfo privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn ) : string
protocol Protocol The protocol of the URL
distributionDomain string The domain name of the distribution
privateKey System.IO.FileSystemInfo The private key file. RSA private key (.pem) are supported.
resourcePath string The path for the resource, or the name of the stream for rtmp
keyPairId string The key pair id corresponding to the private key file given.
expiresOn System.DateTime The expiration date of the signed URL
Результат string
        public static string GetCannedSignedURL(Protocol protocol,
                                                string distributionDomain,
                                                FileSystemInfo privateKey,
                                                string resourcePath,
                                                string keyPairId,
                                                DateTime expiresOn)
        {
            using (StreamReader reader = new StreamReader(File.OpenRead(privateKey.FullName)))
            {
                return GetCannedSignedURL(protocol, distributionDomain, reader, resourcePath, keyPairId, expiresOn);
            }
        }

Same methods

AmazonCloudFrontUrlSigner::GetCannedSignedURL ( Protocol protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn ) : string
AmazonCloudFrontUrlSigner::GetCannedSignedURL ( string url, TextReader privateKey, string keyPairId, System.DateTime expiresOn ) : string