2021-03-02 20:13:49 +00:00
|
|
|
package eu.siacs.conversations.xmpp.jingle;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import eu.siacs.conversations.xmpp.jingle.stanzas.Group;
|
2023-12-19 16:25:48 +00:00
|
|
|
import eu.siacs.conversations.xmpp.jingle.stanzas.IceUdpTransportInfo;
|
2021-03-02 20:13:49 +00:00
|
|
|
import eu.siacs.conversations.xmpp.jingle.stanzas.OmemoVerifiedIceUdpTransportInfo;
|
2023-12-19 16:25:48 +00:00
|
|
|
import eu.siacs.conversations.xmpp.jingle.stanzas.RtpDescription;
|
2021-03-02 20:13:49 +00:00
|
|
|
|
|
|
|
public class OmemoVerifiedRtpContentMap extends RtpContentMap {
|
2023-12-19 16:25:48 +00:00
|
|
|
public OmemoVerifiedRtpContentMap(Group group, Map<String, DescriptionTransport<RtpDescription, IceUdpTransportInfo>> contents) {
|
2021-03-02 20:13:49 +00:00
|
|
|
super(group, contents);
|
2023-12-19 16:25:48 +00:00
|
|
|
for(final DescriptionTransport<RtpDescription,IceUdpTransportInfo> descriptionTransport : contents.values()) {
|
2021-03-02 20:13:49 +00:00
|
|
|
if (descriptionTransport.transport instanceof OmemoVerifiedIceUdpTransportInfo) {
|
|
|
|
((OmemoVerifiedIceUdpTransportInfo) descriptionTransport.transport).ensureNoPlaintextFingerprint();
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
throw new IllegalStateException("OmemoVerifiedRtpContentMap contains non-verified transport info");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|