Package ch.imvs.sdes4j.srtp
Class FecOrderSessionParam
- java.lang.Object
-
- ch.imvs.sdes4j.srtp.SrtpSessionParam
-
- ch.imvs.sdes4j.srtp.FecOrderSessionParam
-
- All Implemented Interfaces:
SessionParam
public class FecOrderSessionParam extends SrtpSessionParam
FEC_ORDER signals the use of forward error correction for the RTP packets [RFC2733]. The forward error correction values for "order" are FEC_SRTP or SRTP_FEC. FEC_SRTP signals that FEC is applied before SRTP processing by the sender of the SRTP media and after SRTP processing by the receiver of the SRTP media; FEC_SRTP is the default. SRTP_FEC is the reverse processing.- Author:
- Ingo Bauersachs
-
-
Field Summary
Fields Modifier and Type Field Description static int
FEC_SRTP
FEC_SRTP signals that FEC is applied before SRTP processing by the sender of the SRTP media and after SRTP processing by the receiver of the SRTP media; FEC_SRTP is the default.static int
SRTP_FEC
SRTP_FEC signals that SRTP processing is performed before applying FEC by the sender of the SRTP media and after FEC processing by the receiver of the SRTP media.
-
Constructor Summary
Constructors Constructor Description FecOrderSessionParam(int mode)
Creates a new instance of this class from a known order value.FecOrderSessionParam(java.lang.String param)
Creates a new instance of this class from the textual representation of the session parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
encode()
Encodes the information contained in this object for use in the complete crypto attribute.int
getMode()
Gets the forward error correction mode.-
Methods inherited from class ch.imvs.sdes4j.srtp.SrtpSessionParam
create
-
-
-
-
Field Detail
-
FEC_SRTP
public static final int FEC_SRTP
FEC_SRTP signals that FEC is applied before SRTP processing by the sender of the SRTP media and after SRTP processing by the receiver of the SRTP media; FEC_SRTP is the default.- See Also:
- Constant Field Values
-
SRTP_FEC
public static final int SRTP_FEC
SRTP_FEC signals that SRTP processing is performed before applying FEC by the sender of the SRTP media and after FEC processing by the receiver of the SRTP media.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FecOrderSessionParam
public FecOrderSessionParam(int mode)
Creates a new instance of this class from a known order value.
-
FecOrderSessionParam
public FecOrderSessionParam(java.lang.String param)
Creates a new instance of this class from the textual representation of the session parameter.- Parameters:
param
- The textual representation of the session parameter.
-
-
Method Detail
-
encode
public java.lang.String encode()
Description copied from interface:SessionParam
Encodes the information contained in this object for use in the complete crypto attribute.- Returns:
- Textual representation of the session parameter.
-
-