Interface CmafSpekeEncryptionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CmafSpekeEncryptionProps.Jsii$Proxy
Example:
Channel channel;
IRole spekeRole;
ICertificate certificate;
OriginEndpoint.Builder.create(this, "Endpoint")
.channel(channel)
.segment(Segment.cmaf(CmafSegmentProps.builder()
.encryption(CmafEncryption.speke(CmafSpekeEncryptionProps.builder()
.method(CmafEncryptionMethod.CBCS)
.drmSystems(List.of(CmafDrmSystem.FAIRPLAY))
.resourceId("my-content-id")
.url("https://example.com/speke")
.role(spekeRole)
.certificate(certificate)
.build()))
.build()))
.manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder().manifestName("index").build())))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCmafSpekeEncryptionPropsstatic final classAn implementation forCmafSpekeEncryptionProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default PresetSpeke20Audio(experimental) Audio encryption preset.default ICertificate(experimental) The ARN of the certificate that you imported to AWS Certificate Manager to add content key encryption to this endpoint.default String(experimental) Constant initialization vector (32-character hex string).(experimental) The DRM systems to use for content protection.default Boolean(experimental) When enabled, DRM metadata is excluded from CMAF segments.default Duration(experimental) Key rotation interval.(experimental) The encryption method to use.(experimental) The unique identifier for the content.getRole()(experimental) IAM role for accessing the key provider API.getUrl()(experimental) URL of the SPEKE key provider.default PresetSpeke20Video(experimental) Video encryption preset.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDrmSystems
(experimental) The DRM systems to use for content protection.CENC supports PlayReady, Widevine, and Irdeto. CBCS supports PlayReady, Widevine, and FairPlay.
-
getMethod
(experimental) The encryption method to use. -
getResourceId
(experimental) The unique identifier for the content.The service sends this identifier to the key server to identify the current endpoint. How unique you make this identifier depends on how fine-grained you want access controls to be. The service does not permit you to use the same ID for two simultaneous encryption processes.
-
getRole
(experimental) IAM role for accessing the key provider API.This role must have a trust policy that allows MediaPackage to assume the role, and it must have sufficient permissions to access the key retrieval URL.
-
getUrl
(experimental) URL of the SPEKE key provider. -
getAudioPreset
(experimental) Audio encryption preset.Default: PresetSpeke20Audio.PRESET_AUDIO_1
-
getCertificate
(experimental) The ARN of the certificate that you imported to AWS Certificate Manager to add content key encryption to this endpoint.For this feature to work, your DRM key provider must support content key encryption.
Default: - no content key encryption
-
getConstantInitializationVector
(experimental) Constant initialization vector (32-character hex string).A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting content.
Default: - MediaPackage generates the IV
-
getExcludeSegmentDrmMetadata
(experimental) When enabled, DRM metadata is excluded from CMAF segments.Default: false
-
getKeyRotationInterval
(experimental) Key rotation interval.Default: - no rotation
-
getVideoPreset
(experimental) Video encryption preset.Default: PresetSpeke20Video.PRESET_VIDEO_1
-
builder
- Returns:
- a
CmafSpekeEncryptionProps.BuilderofCmafSpekeEncryptionProps
-