Class ContentKeyPolicyFairPlayConfiguration

java.lang.Object
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyConfiguration
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyFairPlayConfiguration

public final class ContentKeyPolicyFairPlayConfiguration extends ContentKeyPolicyConfiguration
Specifies a configuration for FairPlay licenses.
  • Constructor Details

    • ContentKeyPolicyFairPlayConfiguration

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

    • ask

      public byte[] ask()
      Get the ask property: The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded.
      Returns:
      the ask value.
    • withAsk

      public ContentKeyPolicyFairPlayConfiguration withAsk(byte[] ask)
      Set the ask property: The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded.
      Parameters:
      ask - the ask value to set.
      Returns:
      the ContentKeyPolicyFairPlayConfiguration object itself.
    • fairPlayPfxPassword

      public String fairPlayPfxPassword()
      Get the fairPlayPfxPassword property: The password encrypting FairPlay certificate in PKCS 12 (pfx) format.
      Returns:
      the fairPlayPfxPassword value.
    • withFairPlayPfxPassword

      public ContentKeyPolicyFairPlayConfiguration withFairPlayPfxPassword(String fairPlayPfxPassword)
      Set the fairPlayPfxPassword property: The password encrypting FairPlay certificate in PKCS 12 (pfx) format.
      Parameters:
      fairPlayPfxPassword - the fairPlayPfxPassword value to set.
      Returns:
      the ContentKeyPolicyFairPlayConfiguration object itself.
    • fairPlayPfx

      public String fairPlayPfx()
      Get the fairPlayPfx property: The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).
      Returns:
      the fairPlayPfx value.
    • withFairPlayPfx

      public ContentKeyPolicyFairPlayConfiguration withFairPlayPfx(String fairPlayPfx)
      Set the fairPlayPfx property: The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).
      Parameters:
      fairPlayPfx - the fairPlayPfx value to set.
      Returns:
      the ContentKeyPolicyFairPlayConfiguration object itself.
    • rentalAndLeaseKeyType

      public ContentKeyPolicyFairPlayRentalAndLeaseKeyType rentalAndLeaseKeyType()
      Get the rentalAndLeaseKeyType property: The rental and lease key type.
      Returns:
      the rentalAndLeaseKeyType value.
    • withRentalAndLeaseKeyType

      public ContentKeyPolicyFairPlayConfiguration withRentalAndLeaseKeyType(ContentKeyPolicyFairPlayRentalAndLeaseKeyType rentalAndLeaseKeyType)
      Set the rentalAndLeaseKeyType property: The rental and lease key type.
      Parameters:
      rentalAndLeaseKeyType - the rentalAndLeaseKeyType value to set.
      Returns:
      the ContentKeyPolicyFairPlayConfiguration object itself.
    • rentalDuration

      public long rentalDuration()
      Get the rentalDuration property: The rental duration. Must be greater than or equal to 0.
      Returns:
      the rentalDuration value.
    • withRentalDuration

      public ContentKeyPolicyFairPlayConfiguration withRentalDuration(long rentalDuration)
      Set the rentalDuration property: The rental duration. Must be greater than or equal to 0.
      Parameters:
      rentalDuration - the rentalDuration value to set.
      Returns:
      the ContentKeyPolicyFairPlayConfiguration object itself.
    • offlineRentalConfiguration

      public ContentKeyPolicyFairPlayOfflineRentalConfiguration offlineRentalConfiguration()
      Get the offlineRentalConfiguration property: Offline rental policy.
      Returns:
      the offlineRentalConfiguration value.
    • withOfflineRentalConfiguration

      public ContentKeyPolicyFairPlayConfiguration withOfflineRentalConfiguration(ContentKeyPolicyFairPlayOfflineRentalConfiguration offlineRentalConfiguration)
      Set the offlineRentalConfiguration property: Offline rental policy.
      Parameters:
      offlineRentalConfiguration - the offlineRentalConfiguration value to set.
      Returns:
      the ContentKeyPolicyFairPlayConfiguration object itself.
    • validate

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