TokenRestrictionTemplateSerializer.GenerateTestToken Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET