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

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

Returns a signed URL that provides tailored access to private content based on an access time window and an ip range.
public static GetCustomSignedURL ( Protocol protocol, string distributionDomain, FileSystemInfo privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn, System.DateTime activeFrom, string ipRange ) : string
protocol Protocol The protocol of the URL
distributionDomain string The domain name of the distribution
privateKey System.IO.FileSystemInfo Your 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
activeFrom System.DateTime The beginning valid date of the signed URL
ipRange string The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).
Результат string
        public static string GetCustomSignedURL(Protocol protocol,
                                                string distributionDomain,
                                                FileSystemInfo privateKey,
                                                string resourcePath,
                                                string keyPairId,
                                                DateTime expiresOn,
                                                DateTime activeFrom,
                                                string ipRange)
        {
            using (StreamReader reader = new StreamReader(File.OpenRead(privateKey.FullName)))
            {
                return GetCustomSignedURL(protocol, distributionDomain, reader, resourcePath, keyPairId, expiresOn, activeFrom, ipRange);
            }
        }

Same methods

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