Package org.jitsi.service.neomedia
Interface DtlsControl
-
- All Superinterfaces:
SrtpControl
- All Known Implementing Classes:
DtlsControlImpl
public interface DtlsControl extends SrtpControl
ImplementsSrtpControlfor DTSL-SRTP.- Author:
- Lyubomir Marinov
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDtlsControl.SetupEnumerates the possible values of the setup SDP attribute defined by RFC 4145 "TCP-Based Media Transport in the Session Description Protocol (SDP)".-
Nested classes/interfaces inherited from interface org.jitsi.service.neomedia.SrtpControl
SrtpControl.TransformEngine
-
-
Field Summary
Fields Modifier and Type Field Description static StringUDP_TLS_RTP_SAVPThe transport protocol (i.e.static StringUDP_TLS_RTP_SAVPFThe transport protocol (i.e.-
Fields inherited from interface org.jitsi.service.neomedia.SrtpControl
RTP_SAVP, RTP_SAVPF
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLocalFingerprint()Gets the fingerprint of the local certificate that this instance uses to authenticate its ends of DTLS sessions.StringgetLocalFingerprintHashFunction()Gets the hash function with which the fingerprint of the local certificate is computed i.e.DtlsControl.SetupgetSetup()Gets the value of the setup SDP attribute.voidsetRemoteFingerprints(Map<String,String> remoteFingerprints)Sets the certificate fingerprints presented by the remote endpoint via the signaling path.voidsetRtcpmux(boolean rtcpmux)Enables/disables rtcp-mux.voidsetSetup(DtlsControl.Setup setup)Sets the value of the setup SDP attribute defined by RFC 4145 "TCP-Based Media Transport in the Session Description Protocol (SDP)" which determines whether this instance is to act as a DTLS client or a DTLS server.-
Methods inherited from interface org.jitsi.service.neomedia.SrtpControl
cleanup, getSecureCommunicationStatus, getSrtpControlType, getSrtpListener, getTransformEngine, registerUser, requiresSecureSignalingTransport, setConnector, setMasterSession, setMultistream, setSrtpListener, start
-
-
-
-
Field Detail
-
UDP_TLS_RTP_SAVP
static final String UDP_TLS_RTP_SAVP
The transport protocol (i.e. <proto>) to be specified in a SDP media description (i.e. m= line) in order to denote a RTP/SAVP stream transported over DTLS with UDP.- See Also:
- Constant Field Values
-
UDP_TLS_RTP_SAVPF
static final String UDP_TLS_RTP_SAVPF
The transport protocol (i.e. <proto>) to be specified in a SDP media description (i.e. m= line) in order to denote a RTP/SAVPF stream transported over DTLS with UDP.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLocalFingerprint
String getLocalFingerprint()
Gets the fingerprint of the local certificate that this instance uses to authenticate its ends of DTLS sessions.- Returns:
- the fingerprint of the local certificate that this instance uses to authenticate its ends of DTLS sessions
-
getLocalFingerprintHashFunction
String getLocalFingerprintHashFunction()
Gets the hash function with which the fingerprint of the local certificate is computed i.e. the digest algorithm of the signature algorithm of the local certificate.- Returns:
- the hash function with which the fingerprint of the local certificate is computed
-
setRemoteFingerprints
void setRemoteFingerprints(Map<String,String> remoteFingerprints)
Sets the certificate fingerprints presented by the remote endpoint via the signaling path.- Parameters:
remoteFingerprints- a Map of hash functions to certificate fingerprints that have been presented by the remote endpoint via the signaling path
-
setSetup
void setSetup(DtlsControl.Setup setup)
Sets the value of the setup SDP attribute defined by RFC 4145 "TCP-Based Media Transport in the Session Description Protocol (SDP)" which determines whether this instance is to act as a DTLS client or a DTLS server.- Parameters:
setup- the value of the setup SDP attribute to set on this instance in order to determine whether this instance is to act as a DTLS client or a DTLS server
-
getSetup
DtlsControl.Setup getSetup()
Gets the value of the setup SDP attribute.
-
setRtcpmux
void setRtcpmux(boolean rtcpmux)
Enables/disables rtcp-mux.- Parameters:
rtcpmux- whether to enable or disable.
-
-