Class ContentKeyPolicyFairPlayConfiguration
java.lang.Object
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyConfiguration
com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyFairPlayConfiguration
Specifies a configuration for FairPlay licenses.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ContentKeyPolicyFairPlayConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
ask()
Get the ask property: The key that must be used as FairPlay Application Secret key.Get the fairPlayPfx property: The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).Get the fairPlayPfxPassword property: The password encrypting FairPlay certificate in PKCS 12 (pfx) format.Get the offlineRentalConfiguration property: Offline rental policy.Get the rentalAndLeaseKeyType property: The rental and lease key type.long
Get the rentalDuration property: The rental duration.void
validate()
Validates the instance.withAsk
(byte[] ask) Set the ask property: The key that must be used as FairPlay Application Secret key.withFairPlayPfx
(String fairPlayPfx) Set the fairPlayPfx property: The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).withFairPlayPfxPassword
(String fairPlayPfxPassword) Set the fairPlayPfxPassword property: The password encrypting FairPlay certificate in PKCS 12 (pfx) format.withOfflineRentalConfiguration
(ContentKeyPolicyFairPlayOfflineRentalConfiguration offlineRentalConfiguration) Set the offlineRentalConfiguration property: Offline rental policy.withRentalAndLeaseKeyType
(ContentKeyPolicyFairPlayRentalAndLeaseKeyType rentalAndLeaseKeyType) Set the rentalAndLeaseKeyType property: The rental and lease key type.withRentalDuration
(long rentalDuration) Set the rentalDuration property: The rental duration.
-
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
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
Get the fairPlayPfxPassword property: The password encrypting FairPlay certificate in PKCS 12 (pfx) format.- Returns:
- the fairPlayPfxPassword value.
-
withFairPlayPfxPassword
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
Get the fairPlayPfx property: The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).- Returns:
- the fairPlayPfx value.
-
withFairPlayPfx
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
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
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
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 classContentKeyPolicyConfiguration
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-