Interface HlsEncryption.Builder

  • Method Details

    • constantInitializationVector

      HlsEncryption.Builder constantInitializationVector(String constantInitializationVector)
      A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
      Parameters:
      constantInitializationVector - A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • encryptionMethod

      HlsEncryption.Builder encryptionMethod(String encryptionMethod)
      The encryption method to use.
      Parameters:
      encryptionMethod - The encryption method to use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • encryptionMethod

      HlsEncryption.Builder encryptionMethod(EncryptionMethod encryptionMethod)
      The encryption method to use.
      Parameters:
      encryptionMethod - The encryption method to use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • spekeKeyProvider

      HlsEncryption.Builder spekeKeyProvider(SpekeKeyProvider spekeKeyProvider)
      Sets the value of the SpekeKeyProvider property for this object.
      Parameters:
      spekeKeyProvider - The new value for the SpekeKeyProvider property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • spekeKeyProvider

      default HlsEncryption.Builder spekeKeyProvider(Consumer<SpekeKeyProvider.Builder> spekeKeyProvider)
      Sets the value of the SpekeKeyProvider property for this object. This is a convenience method that creates an instance of the SpekeKeyProvider.Builder avoiding the need to create one manually via SpekeKeyProvider.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to spekeKeyProvider(SpekeKeyProvider).

      Parameters:
      spekeKeyProvider - a consumer that will call methods on SpekeKeyProvider.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: