Class ContentKeyPolicyTokenRestriction

java.lang.Object
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyRestriction
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyTokenRestriction

public final class ContentKeyPolicyTokenRestriction extends ContentKeyPolicyRestriction
Represents a token restriction. Provided token must match these requirements for successful license or key delivery.
  • Constructor Details

    • ContentKeyPolicyTokenRestriction

      public ContentKeyPolicyTokenRestriction()
      Creates an instance of ContentKeyPolicyTokenRestriction class.
  • Method Details

    • issuer

      public String issuer()
      Get the issuer property: The token issuer.
      Returns:
      the issuer value.
    • withIssuer

      public ContentKeyPolicyTokenRestriction withIssuer(String issuer)
      Set the issuer property: The token issuer.
      Parameters:
      issuer - the issuer value to set.
      Returns:
      the ContentKeyPolicyTokenRestriction object itself.
    • audience

      public String audience()
      Get the audience property: The audience for the token.
      Returns:
      the audience value.
    • withAudience

      public ContentKeyPolicyTokenRestriction withAudience(String audience)
      Set the audience property: The audience for the token.
      Parameters:
      audience - the audience value to set.
      Returns:
      the ContentKeyPolicyTokenRestriction object itself.
    • primaryVerificationKey

      public ContentKeyPolicyRestrictionTokenKey primaryVerificationKey()
      Get the primaryVerificationKey property: The primary verification key.
      Returns:
      the primaryVerificationKey value.
    • withPrimaryVerificationKey

      public ContentKeyPolicyTokenRestriction withPrimaryVerificationKey(ContentKeyPolicyRestrictionTokenKey primaryVerificationKey)
      Set the primaryVerificationKey property: The primary verification key.
      Parameters:
      primaryVerificationKey - the primaryVerificationKey value to set.
      Returns:
      the ContentKeyPolicyTokenRestriction object itself.
    • alternateVerificationKeys

      public List<ContentKeyPolicyRestrictionTokenKey> alternateVerificationKeys()
      Get the alternateVerificationKeys property: A list of alternative verification keys.
      Returns:
      the alternateVerificationKeys value.
    • withAlternateVerificationKeys

      public ContentKeyPolicyTokenRestriction withAlternateVerificationKeys(List<ContentKeyPolicyRestrictionTokenKey> alternateVerificationKeys)
      Set the alternateVerificationKeys property: A list of alternative verification keys.
      Parameters:
      alternateVerificationKeys - the alternateVerificationKeys value to set.
      Returns:
      the ContentKeyPolicyTokenRestriction object itself.
    • requiredClaims

      public List<ContentKeyPolicyTokenClaim> requiredClaims()
      Get the requiredClaims property: A list of required token claims.
      Returns:
      the requiredClaims value.
    • withRequiredClaims

      public ContentKeyPolicyTokenRestriction withRequiredClaims(List<ContentKeyPolicyTokenClaim> requiredClaims)
      Set the requiredClaims property: A list of required token claims.
      Parameters:
      requiredClaims - the requiredClaims value to set.
      Returns:
      the ContentKeyPolicyTokenRestriction object itself.
    • restrictionTokenType

      public ContentKeyPolicyRestrictionTokenType restrictionTokenType()
      Get the restrictionTokenType property: The type of token.
      Returns:
      the restrictionTokenType value.
    • withRestrictionTokenType

      public ContentKeyPolicyTokenRestriction withRestrictionTokenType(ContentKeyPolicyRestrictionTokenType restrictionTokenType)
      Set the restrictionTokenType property: The type of token.
      Parameters:
      restrictionTokenType - the restrictionTokenType value to set.
      Returns:
      the ContentKeyPolicyTokenRestriction object itself.
    • openIdConnectDiscoveryDocument

      public String openIdConnectDiscoveryDocument()
      Get the openIdConnectDiscoveryDocument property: The OpenID connect discovery document.
      Returns:
      the openIdConnectDiscoveryDocument value.
    • withOpenIdConnectDiscoveryDocument

      public ContentKeyPolicyTokenRestriction withOpenIdConnectDiscoveryDocument(String openIdConnectDiscoveryDocument)
      Set the openIdConnectDiscoveryDocument property: The OpenID connect discovery document.
      Parameters:
      openIdConnectDiscoveryDocument - the openIdConnectDiscoveryDocument value to set.
      Returns:
      the ContentKeyPolicyTokenRestriction object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ContentKeyPolicyRestriction
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.