共用方式為


TokenRestrictionTemplateSerializer.GenerateTestToken Method

Definition

public static string GenerateTestToken (Microsoft.WindowsAzure.MediaServices.Client.ContentKeyAuthorization.TokenRestrictionTemplate tokenTemplate, Microsoft.WindowsAzure.MediaServices.Client.ContentKeyAuthorization.TokenVerificationKey signingKeyToUse = default, Guid? keyIdForContentKeyIdentifierClaim = default, DateTime? tokenExpiration = default);
static member GenerateTestToken : Microsoft.WindowsAzure.MediaServices.Client.ContentKeyAuthorization.TokenRestrictionTemplate * Microsoft.WindowsAzure.MediaServices.Client.ContentKeyAuthorization.TokenVerificationKey * Nullable<Guid> * Nullable<DateTime> -> string
Public Shared Function GenerateTestToken (tokenTemplate As TokenRestrictionTemplate, Optional signingKeyToUse As TokenVerificationKey = Nothing, Optional keyIdForContentKeyIdentifierClaim As Nullable(Of Guid) = Nothing, Optional tokenExpiration As Nullable(Of DateTime) = Nothing) As String

Parameters

tokenTemplate
TokenRestrictionTemplate
signingKeyToUse
TokenVerificationKey
keyIdForContentKeyIdentifierClaim
Nullable<Guid>
tokenExpiration
Nullable<DateTime>

Returns

Applies to