- java.lang.Object
-
- dev.onvoid.webrtc.internal.NativeObject
-
- dev.onvoid.webrtc.RTCDtlsTransport
-
public class RTCDtlsTransport extends dev.onvoid.webrtc.internal.NativeObjectAllows an application to access information about the Datagram Transport Layer Security (DTLS) transport over which RTP and RTCP packets are sent and received by RTCRtpSender's and RTCRtpReceiver's, as well other data such as SCTP packets sent and received by data channels. RTCDtlsTransport objects are constructed as a result of calls tosetLocalDescriptionandsetRemoteDescription. Each RTCDtlsTransport object represents the DTLS transport layer for the RTP or RTCP component of a specificRTCRtpTransceiver, or a group of RTCRtpTransceivers if such a group has been negotiated via [BUNDLE].- Author:
- Alex Andres
-
-
Constructor Summary
Constructors Constructor Description RTCDtlsTransport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RTCIceTransportgetIceTransport()Returns the underlying transport that is used to send and receive packets.List<RTCCertificatePEM>getRemoteCertificates()Returns the certificate chain in use by the remote side, with each certificate encoded in PEM format.RTCDtlsTransportStategetState()Returns the current Datagram Transport Layer Security (DTLS) transport state.voidregisterObserver(RTCDtlsTransportObserver observer)Register an observer to receive events from this transport.voidunregisterObserver()Unregister the last set RTCDtlsTransportObserver.
-
-
-
Method Detail
-
getIceTransport
public RTCIceTransport getIceTransport()
Returns the underlying transport that is used to send and receive packets. The underlying transport may not be shared between multiple active RTCDtlsTransport objects.- Returns:
- The transport that is used to send and receive packets.
-
getState
public RTCDtlsTransportState getState()
Returns the current Datagram Transport Layer Security (DTLS) transport state.- Returns:
- The current DTLS transport state.
-
getRemoteCertificates
public List<RTCCertificatePEM> getRemoteCertificates()
Returns the certificate chain in use by the remote side, with each certificate encoded in PEM format.- Returns:
- The certificate chain in use by the remote side.
-
registerObserver
public void registerObserver(RTCDtlsTransportObserver observer)
Register an observer to receive events from this transport. The observer will replace the previously registered observer.- Parameters:
observer- The new DTLS transport observer.
-
unregisterObserver
public void unregisterObserver()
Unregister the last set RTCDtlsTransportObserver.
-
-