Class SDES
- java.lang.Object
-
- org.kurento.client.SDES
-
public class SDES extends Object
Security Descriptions for Media Streams
-
-
Constructor Summary
Constructors Constructor Description SDES()
Create a SDES
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CryptoSuite
getCrypto()
get Selects the cryptographic suite to be used.String
getKey()
getString
getKeyBase64()
getvoid
setCrypto(CryptoSuite crypto)
set Selects the cryptographic suite to be used.void
setKey(String key)
setvoid
setKeyBase64(String keyBase64)
set
-
-
-
Method Detail
-
getKey
public String getKey()
getMaster 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)
setMaster 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()
getMaster 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)
setMaster 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.
-
-