You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services/azure-media/src/main/java/com/microsoft/windowsazure/services/media/implementation/templates/tokenrestriction/TokenRestrictionTemplate.java
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,9 @@ public class TokenRestrictionTemplate {
Copy file name to clipboardExpand all lines: services/azure-media/src/main/java/com/microsoft/windowsazure/services/media/implementation/templates/tokenrestriction/TokenRestrictionTemplateSerializer.java
for (TokenClaimclaim : tokenTemplate.getRequiredClaims()) {
144
171
StringclaimValue = claim.getClaimValue();
145
172
if (claimValue == null && claim.getClaimType().equals(TokenClaim.getContentKeyIdentifierClaimType())) {
146
173
if (keyIdForContentKeyIdentifierClaim == null) {
147
-
thrownewIllegalArgumentException(String.format("The 'keyIdForContentKeyIdentifierClaim' parameter cannot be null when the token template contains a required '%s' claim type.", TokenClaim.getContentKeyIdentifierClaimType()));
174
+
thrownewIllegalArgumentException(String.format(
175
+
"The 'keyIdForContentKeyIdentifierClaim' parameter cannot be null when the token template contains a required '%s' claim type.",
for (TokenClaimclaim : tokenTemplate.getRequiredClaims()) {
171
195
StringclaimValue = claim.getClaimValue();
172
196
if (claim.getClaimType().equals(TokenClaim.getContentKeyIdentifierClaimType())) {
173
197
if (keyIdForContentKeyIdentifierClaim == null) {
174
-
thrownewIllegalArgumentException(String.format("The 'keyIdForContentKeyIdentifierClaim' parameter cannot be null when the token template contains a required '%s' claim type.", TokenClaim.getContentKeyIdentifierClaimType()));
198
+
thrownewIllegalArgumentException(String.format(
199
+
"The 'keyIdForContentKeyIdentifierClaim' parameter cannot be null when the token template contains a required '%s' claim type.",
Copy file name to clipboardExpand all lines: services/azure-media/src/main/java/com/microsoft/windowsazure/services/media/models/AssetDeliveryPolicyConfigurationKey.java
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,10 @@ public enum AssetDeliveryPolicyConfigurationKey {
35
35
/** The PlayReady Custom Attributes to add to the PlayReady Content Header. */
36
36
PlayReadyCustomAttributes(5),
37
37
/** The initialization vector to use for envelope encryption. */
38
-
EnvelopeEncryptionIV(6);
39
-
40
-
38
+
EnvelopeEncryptionIV(6),
39
+
/** Widevine DRM Acquisition Url to use for common encryption. */
40
+
WidevineLicenseAcquisitionUrl(7);
41
+
41
42
42
43
/** The AssetDeliveryPolicyType code. */
43
44
privateintassetDeliveryPolicyConfigurationKey;
@@ -84,6 +85,8 @@ public static AssetDeliveryPolicyConfigurationKey fromCode(int option) {
Copy file name to clipboardExpand all lines: services/azure-media/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyDeliveryType.java
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,9 @@ public enum ContentKeyDeliveryType {
27
27
/** Use PlayReady License acquisition protocol. */
28
28
PlayReadyLicense(1),
29
29
/** Use MPEG Baseline HTTP key protocol. */
30
-
BaselineHttp(2);
30
+
BaselineHttp(2),
31
+
/** Use Widevine license acquisition protocol. */
32
+
Widevine(3);
31
33
32
34
/** The AssetDeliveryPolicyType code. */
33
35
privateintcontentKeyDeliveryType;
@@ -66,6 +68,8 @@ public static ContentKeyDeliveryType fromCode(int option) {
0 commit comments