C# Class Microsoft.WindowsAzure.MediaServices.Client.Tests.GetKeyDeliveryUrlTests

Mostra file Open project: Azure/azure-sdk-for-media-services

Public Methods

Method Description
CreateTestKey ( CloudMediaContext mediaContext, ContentKeyType contentKeyType, byte &key, string name = "" ) : IContentKey
CreateTestKey ( CloudMediaContext mediaContext, ContentKeyType contentKeyType, string name = "" ) : IContentKey
CreateTestKeyWithSpecified ( string keyIdentifier, CloudMediaContext mediaContext, ContentKeyType contentKeyType, string name = "" ) : IContentKey
CreateTestPolicy ( CloudMediaContext mediaContext, string name, List policyOptions, IContentKey &contentKey ) : IContentKeyAuthorizationPolicy
GetGuidFromBase64String ( string base64keyId ) : System.Guid
GetString ( byte bytes ) : string

Private Methods

Method Description
CleanupKeyAndPolicy ( IContentKey contentKey, IContentKeyAuthorizationPolicy contentKeyAuthorizationPolicy, IContentKeyAuthorizationPolicyOption policyOption ) : void
EnsureEnvelopeKeyDeliveryUrlForCommonKeyFails ( ) : void
EnsureNoneKeyDeliveryUrlFails ( ) : void
EnsurePlayReadyLicenseDeliveryUrlForEnvelopeKeyFails ( ) : void
FetchKeyWithJWTAuth ( string audience, string issuer ) : void
FetchKeyWithRSATokenValidationKeyAsPrimaryVerificationKey ( ) : void
FetchKeyWithSWTToken ( string audience, string issuer ) : void
GetHlsKeyDeliveryUrlAndFetchKey ( ) : void
GetHlsKeyDeliveryUrlAndFetchKeyWithADJWTAuthUsingADOpenConnectDiscovery ( ) : void
GetHlsKeyDeliveryUrlAndFetchKeyWithJWTAuthenticationWhenIssuerIsStringGuid ( ) : void
GetHlsKeyDeliveryUrlAndFetchKeyWithJWTAuthenticationWhenIssuerIsURI ( ) : void
GetHlsKeyDeliveryUrlAndFetchKeyWithSWTAuthenticationWhenIssuerIsStringGuidShouldThrow ( ) : void
GetHlsKeyDeliveryUrlAndFetchKeyWithSWTAuthenticationWhenIssuerIsUri ( ) : void
GetPlayReadyLicenseDeliveryUrl ( ) : void
GetWidevineKeyDeliveryUrlAndFetchLicense ( ) : void
GetWidevineKeyDeliveryUrlAndFetchLicenseWithPolicy ( ) : void
SetupTest ( ) : void

Method Details

CreateTestKey() public static method

public static CreateTestKey ( CloudMediaContext mediaContext, ContentKeyType contentKeyType, byte &key, string name = "" ) : IContentKey
mediaContext CloudMediaContext
contentKeyType ContentKeyType
key byte
name string
return IContentKey

CreateTestKey() public static method

public static CreateTestKey ( CloudMediaContext mediaContext, ContentKeyType contentKeyType, string name = "" ) : IContentKey
mediaContext CloudMediaContext
contentKeyType ContentKeyType
name string
return IContentKey

CreateTestKeyWithSpecified() public static method

public static CreateTestKeyWithSpecified ( string keyIdentifier, CloudMediaContext mediaContext, ContentKeyType contentKeyType, string name = "" ) : IContentKey
keyIdentifier string
mediaContext CloudMediaContext
contentKeyType ContentKeyType
name string
return IContentKey

CreateTestPolicy() public static method

public static CreateTestPolicy ( CloudMediaContext mediaContext, string name, List policyOptions, IContentKey &contentKey ) : IContentKeyAuthorizationPolicy
mediaContext CloudMediaContext
name string
policyOptions List
contentKey IContentKey
return IContentKeyAuthorizationPolicy

GetGuidFromBase64String() public static method

public static GetGuidFromBase64String ( string base64keyId ) : System.Guid
base64keyId string
return System.Guid

GetString() public static method

public static GetString ( byte bytes ) : string
bytes byte
return string