Package ch.imvs.sdes4j.srtp
Class WshSessionParam
- java.lang.Object
-
- ch.imvs.sdes4j.srtp.SrtpSessionParam
-
- ch.imvs.sdes4j.srtp.WshSessionParam
-
- All Implemented Interfaces:
SessionParam
public class WshSessionParam extends SrtpSessionParam
SRTP defines the SRTP-WINDOW-SIZE [RFC3711, Section 3.3.2] parameter to protect against replay attacks. The Window Size Hint (WSH) session parameter provides a hint for how big this window should be to work satisfactorily. The minimum value is 64 [RFC3711]; however, this value may be considered too low for some applications (e.g., video).- Author:
- Ingo Bauersachs
-
-
Constructor Summary
Constructors Constructor Description WshSessionParam(int wsh)
Creates a new instance of this class from an integer.WshSessionParam(java.lang.String param)
Creates a new instance of this class from the textual representation.
-
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
getWindowSizeHint()
Gets the size of the window hint.-
Methods inherited from class ch.imvs.sdes4j.srtp.SrtpSessionParam
create
-
-
-
-
Constructor Detail
-
WshSessionParam
public WshSessionParam(int wsh)
Creates a new instance of this class from an integer.- Parameters:
wsh
- The size of the window hint.
-
WshSessionParam
public WshSessionParam(java.lang.String param)
Creates a new instance of this class from the textual representation.- Parameters:
param
- The textual representation of the WSH parameter.
-
-
Method Detail
-
getWindowSizeHint
public int getWindowSizeHint()
Gets the size of the window hint.- Returns:
- the size of the window hint.
-
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.
-
-