C# Class NeoSmart.Web.CloudFront

Datei anzeigen Open project: neosmart/web

Public Methods

Method Description
GetExpiringLink ( string domainName, string objectName, System.DateTime expiresTime, System.TimeSpan maxAge = null, bool secure = false ) : string
GetExpiringLink ( string domainName, string objectName, System.TimeSpan expires, System.TimeSpan maxAge = null, bool secure = false ) : string
SetCredentials ( string keyPairId, string rsaXml ) : void

Private Methods

Method Description
GetSignature ( string toSign ) : byte[]
ToUrlSafeBase64String ( byte input ) : string

Method Details

GetExpiringLink() public static method

public static GetExpiringLink ( string domainName, string objectName, System.DateTime expiresTime, System.TimeSpan maxAge = null, bool secure = false ) : string
domainName string
objectName string
expiresTime System.DateTime
maxAge System.TimeSpan
secure bool
return string

GetExpiringLink() public static method

public static GetExpiringLink ( string domainName, string objectName, System.TimeSpan expires, System.TimeSpan maxAge = null, bool secure = false ) : string
domainName string
objectName string
expires System.TimeSpan
maxAge System.TimeSpan
secure bool
return string

SetCredentials() public static method

public static SetCredentials ( string keyPairId, string rsaXml ) : void
keyPairId string
rsaXml string
return void