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

Afficher le fichier Open project: Azure/azure-sdk-for-media-services

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CreateTestKey() public static méthode

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

CreateTestKeyWithSpecified() public static méthode

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

CreateTestPolicy() public static méthode

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

GetGuidFromBase64String() public static méthode

public static GetGuidFromBase64String ( string base64keyId ) : System.Guid
base64keyId string
Résultat System.Guid

GetString() public static méthode

public static GetString ( byte bytes ) : string
bytes byte
Résultat string