你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TokenRestrictionTemplateSerializer.GenerateTestToken 方法

定义

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

参数

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

返回

适用于