Class EnvelopeEncryption

java.lang.Object
com.azure.resourcemanager.mediaservices.models.EnvelopeEncryption

public final class EnvelopeEncryption extends Object
Class for EnvelopeEncryption encryption scheme.
  • Constructor Details

    • EnvelopeEncryption

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

    • enabledProtocols

      public EnabledProtocols enabledProtocols()
      Get the enabledProtocols property: Representing supported protocols.
      Returns:
      the enabledProtocols value.
    • withEnabledProtocols

      public EnvelopeEncryption withEnabledProtocols(EnabledProtocols enabledProtocols)
      Set the enabledProtocols property: Representing supported protocols.
      Parameters:
      enabledProtocols - the enabledProtocols value to set.
      Returns:
      the EnvelopeEncryption object itself.
    • clearTracks

      public List<TrackSelection> clearTracks()
      Get the clearTracks property: Representing which tracks should not be encrypted.
      Returns:
      the clearTracks value.
    • withClearTracks

      public EnvelopeEncryption withClearTracks(List<TrackSelection> clearTracks)
      Set the clearTracks property: Representing which tracks should not be encrypted.
      Parameters:
      clearTracks - the clearTracks value to set.
      Returns:
      the EnvelopeEncryption object itself.
    • contentKeys

      public StreamingPolicyContentKeys contentKeys()
      Get the contentKeys property: Representing default content key for each encryption scheme and separate content keys for specific tracks.
      Returns:
      the contentKeys value.
    • withContentKeys

      public EnvelopeEncryption withContentKeys(StreamingPolicyContentKeys contentKeys)
      Set the contentKeys property: Representing default content key for each encryption scheme and separate content keys for specific tracks.
      Parameters:
      contentKeys - the contentKeys value to set.
      Returns:
      the EnvelopeEncryption object itself.
    • customKeyAcquisitionUrlTemplate

      public String customKeyAcquisitionUrlTemplate()
      Get the customKeyAcquisitionUrlTemplate property: Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.
      Returns:
      the customKeyAcquisitionUrlTemplate value.
    • withCustomKeyAcquisitionUrlTemplate

      public EnvelopeEncryption withCustomKeyAcquisitionUrlTemplate(String customKeyAcquisitionUrlTemplate)
      Set the customKeyAcquisitionUrlTemplate property: Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.
      Parameters:
      customKeyAcquisitionUrlTemplate - the customKeyAcquisitionUrlTemplate value to set.
      Returns:
      the EnvelopeEncryption object itself.
    • validate

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