Class SDES


  • public class SDES
    extends Object
    Security Descriptions for Media Streams
    • Constructor Detail

      • SDES

        public SDES()
        Create a SDES
    • Method Detail

      • getKey

        public String getKey()
        get

        Master key and salt (plain text)

        This field provides the the cryptographic master key appended with the master salt, in plain text format. This allows to provide a key that is composed of readable ASCII characters.

        The expected length of the key (as provided to this parameter) is determined by the crypto-suite for which the key applies (30 characters for AES_CM_128, 46 characters for AES_CM_256). If the length does not match the expected value, the key will be considered invalid.

        If no key is provided, a random one will be generated using the `getrandom` system call.

      • setKey

        public void setKey​(String key)
        set

        Master key and salt (plain text)

        This field provides the the cryptographic master key appended with the master salt, in plain text format. This allows to provide a key that is composed of readable ASCII characters.

        The expected length of the key (as provided to this parameter) is determined by the crypto-suite for which the key applies (30 characters for AES_CM_128, 46 characters for AES_CM_256). If the length does not match the expected value, the key will be considered invalid.

        If no key is provided, a random one will be generated using the `getrandom` system call.

      • getKeyBase64

        public String getKeyBase64()
        get

        Master key and salt (base64 encoded)

        This field provides the cryptographic master key appended with the master salt, encoded in base64. This allows to provide a binary key that is not limited to the ASCII character set.

        The expected length of the key (after being decoded from base64) is determined by the crypto-suite for which the key applies (30 bytes for AES_CM_128, 46 bytes for AES_CM_256). If the length does not match the expected value, the key will be considered invalid.

        If no key is provided, a random one will be generated using the `getrandom` system call.

      • setKeyBase64

        public void setKeyBase64​(String keyBase64)
        set

        Master key and salt (base64 encoded)

        This field provides the cryptographic master key appended with the master salt, encoded in base64. This allows to provide a binary key that is not limited to the ASCII character set.

        The expected length of the key (after being decoded from base64) is determined by the crypto-suite for which the key applies (30 bytes for AES_CM_128, 46 bytes for AES_CM_256). If the length does not match the expected value, the key will be considered invalid.

        If no key is provided, a random one will be generated using the `getrandom` system call.

      • getCrypto

        public CryptoSuite getCrypto()
        get Selects the cryptographic suite to be used. For available values, please see the CryptoSuite enum.
      • setCrypto

        public void setCrypto​(CryptoSuite crypto)
        set Selects the cryptographic suite to be used. For available values, please see the CryptoSuite enum.