C# Класс Amazon.CloudFront.AmazonCloudFrontCookieSigner

This utility class provides methods for creating signed cookies for Amazon CloudFront distributions using canned or custom policies.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetCookiesForCannedPolicy ( Protocols protocol, string distributionDomain, FileSystemInfo privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn ) : CookiesForCannedPolicy

Returns signed cookies that grants universal access to private content until a given date.

GetCookiesForCannedPolicy ( Protocols protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn ) : CookiesForCannedPolicy

Returns signed cookies that grants universal access to private content until a given date.

GetCookiesForCannedPolicy ( string resourceUrlOrPath, string keyPairId, FileSystemInfo privateKey, System.DateTime expiresOn ) : CookiesForCannedPolicy

Generate signed cookies that allows access to a specific distribution and resource path by applying a access restrictions from a "canned" (simplified) policy document.

GetCookiesForCannedPolicy ( string resourceUrlOrPath, string keyPairId, TextReader privateKey, System.DateTime expiresOn ) : CookiesForCannedPolicy

Generate signed cookies that allows access to a specific distribution and resource path by applying a access restrictions from a "canned" (simplified) policy document.

GetCookiesForCustomPolicy ( Protocols protocol, string distributionDomain, FileSystemInfo privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn, System.DateTime activeFrom, string ipRange ) : CookiesForCustomPolicy

Returns signed cookies that provides tailored access to private content based on an access time window and an ip range.

GetCookiesForCustomPolicy ( Protocols protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn, System.DateTime activeFrom, string ipRange ) : CookiesForCustomPolicy

Returns signed cookies that provides tailored access to private content based on an access time window and an ip range.

GetCookiesForCustomPolicy ( Protocols protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn, string ipRange ) : CookiesForCustomPolicy

Returns signed cookies that provides tailored access to private content based on an access time window and an ip range.

GetCookiesForCustomPolicy ( string resourceUrlOrPath, TextReader privateKey, string keyPairId, System.DateTime expiresOn, System.DateTime activeFrom, string ipRange ) : CookiesForCustomPolicy

Returns signed cookies that provides tailored access to private content based on an access time window and an ip range.

Приватные методы

Метод Описание
GenerateResourcePath ( Protocols protocol, string distributionDomain, string path ) : string

Returns the resource path for the given distribution, object, and protocol.

Описание методов

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

Returns signed cookies that grants universal access to private content until a given date.
public static GetCookiesForCannedPolicy ( Protocols protocol, string distributionDomain, FileSystemInfo privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn ) : CookiesForCannedPolicy
protocol Protocols The protocol used to access content using signed cookies.
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.
keyPairId string The key pair id corresponding to the private key file given.
expiresOn System.DateTime The expiration date till which content can be accessed using the generated cookies.
Результат CookiesForCannedPolicy

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

Returns signed cookies that grants universal access to private content until a given date.
public static GetCookiesForCannedPolicy ( Protocols protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn ) : CookiesForCannedPolicy
protocol Protocols The protocol used to access content using signed cookies.
distributionDomain string The domain name of the distribution.
privateKey TextReader The private key file. RSA private key (.pem) are supported.
resourcePath string The path for the resource.
keyPairId string The key pair id corresponding to the private key file given.
expiresOn System.DateTime The expiration date till which content can be accessed using the generated cookies.
Результат CookiesForCannedPolicy

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

Generate signed cookies that allows access to a specific distribution and resource path by applying a access restrictions from a "canned" (simplified) policy document.
public static GetCookiesForCannedPolicy ( string resourceUrlOrPath, string keyPairId, FileSystemInfo privateKey, System.DateTime expiresOn ) : CookiesForCannedPolicy
resourceUrlOrPath string /// The URL or path that uniquely identifies a resource within a /// distribution. For standard distributions the resource URL will /// be "http://" + distributionName + "/" + path /// (may also include URL parameters. For distributions with the /// HTTPS required protocol, the resource URL must start with /// "https://". RTMP resources do not take the form of a /// URL, and instead the resource path is nothing but the stream's /// name. ///
keyPairId string Identifier of a public/private certificate keypair already configured in your Amazon Web Services account.
privateKey System.IO.FileSystemInfo The RSA private key data that corresponding to the certificate keypair identified by keyPairId.
expiresOn System.DateTime The expiration date till which content can be accessed using the generated cookies.
Результат CookiesForCannedPolicy

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

Generate signed cookies that allows access to a specific distribution and resource path by applying a access restrictions from a "canned" (simplified) policy document.
public static GetCookiesForCannedPolicy ( string resourceUrlOrPath, string keyPairId, TextReader privateKey, System.DateTime expiresOn ) : CookiesForCannedPolicy
resourceUrlOrPath string /// The URL or path that uniquely identifies a resource within a /// distribution. For standard distributions the resource URL will /// be "http://" + distributionName + "/" + path /// (may also include URL parameters. For distributions with the /// HTTPS required protocol, the resource URL must start with /// "https://". RTMP resources do not take the form of a /// URL, and instead the resource path is nothing but the stream's /// name. ///
keyPairId string Identifier of a public/private certificate keypair already configured in your Amazon Web Services account.
privateKey TextReader The RSA private key data that corresponding to the certificate keypair identified by keyPairId.
expiresOn System.DateTime The expiration date till which content can be accessed using the generated cookies.
Результат CookiesForCannedPolicy

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

Returns signed cookies that provides tailored access to private content based on an access time window and an ip range.
public static GetCookiesForCustomPolicy ( Protocols protocol, string distributionDomain, FileSystemInfo privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn, System.DateTime activeFrom, string ipRange ) : CookiesForCustomPolicy
protocol Protocols The protocol used to access content using signed cookies.
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.
keyPairId string The key pair id corresponding to the private key file given.
expiresOn System.DateTime The expiration date till which content can be accessed using the generated cookies.
activeFrom System.DateTime The date from which content can be accessed using the generated cookies.
ipRange string The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).
Результат CookiesForCustomPolicy

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

Returns signed cookies that provides tailored access to private content based on an access time window and an ip range.
public static GetCookiesForCustomPolicy ( Protocols protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn, System.DateTime activeFrom, string ipRange ) : CookiesForCustomPolicy
protocol Protocols The protocol used to access content using signed cookies.
distributionDomain string The domain name of the distribution.
privateKey TextReader Your private key file. RSA private key (.pem) are supported.
resourcePath string The path for the resource.
keyPairId string The key pair id corresponding to the private key file given.
expiresOn System.DateTime The expiration date till which content can be accessed using the generated cookies.
activeFrom System.DateTime The date from which content can be accessed using the generated cookies.
ipRange string The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).
Результат CookiesForCustomPolicy

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

Returns signed cookies that provides tailored access to private content based on an access time window and an ip range.
public static GetCookiesForCustomPolicy ( Protocols protocol, string distributionDomain, TextReader privateKey, string resourcePath, string keyPairId, System.DateTime expiresOn, string ipRange ) : CookiesForCustomPolicy
protocol Protocols The protocol used to access content using signed cookies.
distributionDomain string The domain name of the distribution.
privateKey TextReader Your private key file. RSA private key (.pem) are supported.
resourcePath string The path for the resource.
keyPairId string The key pair id corresponding to the private key file given.
expiresOn System.DateTime The expiration date till which content can be accessed using the generated cookies.
ipRange string The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).
Результат CookiesForCustomPolicy

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

Returns signed cookies that provides tailored access to private content based on an access time window and an ip range.
public static GetCookiesForCustomPolicy ( string resourceUrlOrPath, TextReader privateKey, string keyPairId, System.DateTime expiresOn, System.DateTime activeFrom, string ipRange ) : CookiesForCustomPolicy
resourceUrlOrPath string /// The URL or path for resource within a distribution. ///
privateKey TextReader Your private key file. RSA private key (.pem) are supported.
keyPairId string The key pair id corresponding to the private key file given.
expiresOn System.DateTime The expiration date till which content can be accessed using the generated cookies.
activeFrom System.DateTime The date from which content can be accessed using the generated cookies.
ipRange string The allowed IP address range of the client making the GET request, in CIDR form (e.g. 192.168.0.1/24).
Результат CookiesForCustomPolicy