C# Class DynamicEncryptionWithAES.Program

Datei anzeigen Open project: Azure-Samples/media-services-dotnet-dynamic-encryption-with-aes

Public Methods

Method Description
AddOpenAuthorizationPolicy ( IContentKey contentKey ) : void
AddTokenRestrictedAuthorizationPolicy ( IContentKey contentKey ) : string
CreateAssetDeliveryPolicy ( IAsset asset, IContentKey key ) : void
CreateEnvelopeTypeContentKey ( IAsset asset ) : IContentKey
EncodeToAdaptiveBitrateMP4Set ( IAsset asset ) : IAsset
GetStreamingOriginLocator ( IAsset asset ) : string
UploadFileAndCreateAsset ( string singleFilePath ) : IAsset

Private Methods

Method Description
GenerateTokenRequirements ( ) : string
GetLatestMediaProcessorByName ( string mediaProcessorName ) : IMediaProcessor
GetRandomBuffer ( int size ) : byte[]
JobStateChanged ( object sender, JobStateChangedEventArgs e ) : void
Main ( string args ) : void

Method Details

AddOpenAuthorizationPolicy() public static method

public static AddOpenAuthorizationPolicy ( IContentKey contentKey ) : void
contentKey IContentKey
return void

AddTokenRestrictedAuthorizationPolicy() public static method

public static AddTokenRestrictedAuthorizationPolicy ( IContentKey contentKey ) : string
contentKey IContentKey
return string

CreateAssetDeliveryPolicy() public static method

public static CreateAssetDeliveryPolicy ( IAsset asset, IContentKey key ) : void
asset IAsset
key IContentKey
return void

CreateEnvelopeTypeContentKey() public static method

public static CreateEnvelopeTypeContentKey ( IAsset asset ) : IContentKey
asset IAsset
return IContentKey

EncodeToAdaptiveBitrateMP4Set() public static method

public static EncodeToAdaptiveBitrateMP4Set ( IAsset asset ) : IAsset
asset IAsset
return IAsset

GetStreamingOriginLocator() public static method

public static GetStreamingOriginLocator ( IAsset asset ) : string
asset IAsset
return string

UploadFileAndCreateAsset() public static method

public static UploadFileAndCreateAsset ( string singleFilePath ) : IAsset
singleFilePath string
return IAsset