diff options
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicTelephonyJabberImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicTelephonyJabberImpl.java | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicTelephonyJabberImpl.java b/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicTelephonyJabberImpl.java index 56fea64..40b127d 100644 --- a/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicTelephonyJabberImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicTelephonyJabberImpl.java @@ -32,7 +32,8 @@ public class OperationSetBasicTelephonyJabberImpl extends AbstractOperationSetBasicTelephony<ProtocolProviderServiceJabberImpl> implements RegistrationStateChangeListener, PacketListener, - PacketFilter + PacketFilter, + OperationSetSecureTelephony { /** @@ -89,7 +90,7 @@ public class OperationSetBasicTelephonyJabberImpl } else if ((evt.getNewState() == RegistrationState.UNREGISTERED)) { - // TODO: plug jingle unregistraion + // TODO: plug jingle unregistration if (logger.isInfoEnabled()) logger.info("Jingle : OFF "); } @@ -558,4 +559,29 @@ public class OperationSetBasicTelephonyJabberImpl { return protocolProvider; } + + /** + * Gets the secure state of the call session in which a specific peer + * is involved + * + * @param peer the peer for who the call state is required + * @return the call state + */ + public boolean isSecure(CallPeer peer) + { + return ((CallPeerJabberImpl) peer).getMediaHandler().isSecure(); + } + + /** + * Sets the SAS verifications state of the call session in which a specific + * peer is involved + * + * @param peer the peer who toggled (or for whom is remotely + * toggled) the SAS verified flag + * @param verified the new SAS verification status + */ + public void setSasVerified(CallPeer peer, boolean verified) + { + ((CallPeerJabberImpl) peer).getMediaHandler().setSasVerified(verified); + } } |