Share via


ContentKeyPolicyTokenRestriction Class

Definition

Represents a token restriction. Provided token must match these requirements for successful license or key delivery.

public class ContentKeyPolicyTokenRestriction : Azure.ResourceManager.Media.Models.ContentKeyPolicyRestriction, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Media.Models.ContentKeyPolicyTokenRestriction>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Media.Models.ContentKeyPolicyTokenRestriction>
type ContentKeyPolicyTokenRestriction = class
    inherit ContentKeyPolicyRestriction
    interface IJsonModel<ContentKeyPolicyTokenRestriction>
    interface IPersistableModel<ContentKeyPolicyTokenRestriction>
Public Class ContentKeyPolicyTokenRestriction
Inherits ContentKeyPolicyRestriction
Implements IJsonModel(Of ContentKeyPolicyTokenRestriction), IPersistableModel(Of ContentKeyPolicyTokenRestriction)
Inheritance
System.Object
ContentKeyPolicyTokenRestriction
Implements
System.ClientModel.Primitives.IJsonModel<ContentKeyPolicyTokenRestriction> System.ClientModel.Primitives.IPersistableModel<ContentKeyPolicyTokenRestriction> System.ClientModel.Primitives.IPersistableModel<T>

Constructors

ContentKeyPolicyTokenRestriction(String, String, ContentKeyPolicyRestrictionTokenKey, ContentKeyPolicyRestrictionTokenType)

Initializes a new instance of ContentKeyPolicyTokenRestriction.

Properties

AlternateVerificationKeys

A list of alternative verification keys. Please note ContentKeyPolicyRestrictionTokenKey is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ContentKeyPolicyRsaTokenKey, ContentKeyPolicySymmetricTokenKey and ContentKeyPolicyX509CertificateTokenKey.

Audience

The audience for the token.

Issuer

The token issuer.

OpenIdConnectDiscoveryDocument

The OpenID connect discovery document.

PrimaryVerificationKey

The primary verification key. Please note ContentKeyPolicyRestrictionTokenKey is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ContentKeyPolicyRsaTokenKey, ContentKeyPolicySymmetricTokenKey and ContentKeyPolicyX509CertificateTokenKey.

RequiredClaims

A list of required token claims.

RestrictionTokenType

The type of token.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ContentKeyPolicyRestriction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ContentKeyPolicyRestriction)
IJsonModel<ContentKeyPolicyRestriction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided System.Text.Json.Utf8JsonWriter.

(Inherited from ContentKeyPolicyRestriction)
IJsonModel<ContentKeyPolicyTokenRestriction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ContentKeyPolicyTokenRestriction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided System.Text.Json.Utf8JsonWriter.

IPersistableModel<ContentKeyPolicyRestriction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided System.BinaryData into a model.

(Inherited from ContentKeyPolicyRestriction)
IPersistableModel<ContentKeyPolicyRestriction>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ContentKeyPolicyRestriction)
IPersistableModel<ContentKeyPolicyRestriction>.Write(ModelReaderWriterOptions)

Writes the model into a System.BinaryData.

(Inherited from ContentKeyPolicyRestriction)
IPersistableModel<ContentKeyPolicyTokenRestriction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided System.BinaryData into a model.

IPersistableModel<ContentKeyPolicyTokenRestriction>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ContentKeyPolicyTokenRestriction>.Write(ModelReaderWriterOptions)

Writes the model into a System.BinaryData.

Applies to