mirror of https://github.com/sipwise/jitsi.git
commit
723b2bb99a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,71 +0,0 @@
|
||||
/*
|
||||
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
|
||||
*
|
||||
* Copyright @ 2015 Atlassian Pty Ltd
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package net.java.sip.communicator.impl.libjitsi;
|
||||
|
||||
import java.lang.reflect.*;
|
||||
|
||||
import org.jitsi.service.libjitsi.*;
|
||||
import org.osgi.framework.*;
|
||||
|
||||
public class LibJitsiActivator
|
||||
implements BundleActivator
|
||||
{
|
||||
public void start(BundleContext bundleContext)
|
||||
throws Exception
|
||||
{
|
||||
/*
|
||||
* XXX To start/initialize the libjitsi library, simply call
|
||||
* LibJitsi#start(). The following is a temporary workaround for the
|
||||
* benefit of the Jitsi Videobridge project (which uses Jitsi's libjitsi
|
||||
* bundle and runs on an incomplete OSGi implementation) and not the
|
||||
* Jitsi project.
|
||||
*/
|
||||
Method start;
|
||||
|
||||
try
|
||||
{
|
||||
start = LibJitsi.class.getDeclaredMethod("start", Object.class);
|
||||
if (Modifier.isStatic(start.getModifiers()))
|
||||
{
|
||||
start.setAccessible(true);
|
||||
if (!start.isAccessible())
|
||||
start = null;
|
||||
}
|
||||
else
|
||||
start = null;
|
||||
}
|
||||
catch (NoSuchMethodException nsme)
|
||||
{
|
||||
start = null;
|
||||
}
|
||||
catch (SecurityException se)
|
||||
{
|
||||
start = null;
|
||||
}
|
||||
if (start == null)
|
||||
LibJitsi.start();
|
||||
else
|
||||
start.invoke(null, bundleContext);
|
||||
}
|
||||
|
||||
public void stop(BundleContext bundleContext)
|
||||
throws Exception
|
||||
{
|
||||
LibJitsi.stop();
|
||||
}
|
||||
}
|
||||
@ -1,97 +0,0 @@
|
||||
Bundle-Activator: net.java.sip.communicator.impl.libjitsi.LibJitsiActivator
|
||||
Bundle-Description: The core of Jitsi as a stand-alone library
|
||||
Bundle-Name: libjitsi
|
||||
Bundle-Vendor: jitsi.org
|
||||
Bundle-Version: 0.0.1
|
||||
Bundle-SymbolicName: net.java.sip.communicator.libjitsi
|
||||
Export-Package: javax.media,
|
||||
javax.media.protocol,
|
||||
org.jitsi.impl.neomedia,
|
||||
org.jitsi.impl.neomedia.codec,
|
||||
org.jitsi.impl.neomedia.codec.video.h264,
|
||||
org.jitsi.impl.neomedia.device,
|
||||
org.jitsi.impl.neomedia.format,
|
||||
org.jitsi.impl.neomedia.recording,
|
||||
org.jitsi.service.audionotifier,
|
||||
org.jitsi.service.configuration,
|
||||
org.jitsi.service.fileaccess,
|
||||
org.jitsi.service.libjitsi,
|
||||
org.jitsi.service.neomedia,
|
||||
org.jitsi.service.neomedia.codec,
|
||||
org.jitsi.service.neomedia.control,
|
||||
org.jitsi.service.neomedia.device,
|
||||
org.jitsi.service.neomedia.event,
|
||||
org.jitsi.service.neomedia.format,
|
||||
org.jitsi.service.neomedia.recording,
|
||||
org.jitsi.service.packetlogging,
|
||||
org.jitsi.service.protocol,
|
||||
org.jitsi.service.protocol.event,
|
||||
org.jitsi.service.resources,
|
||||
org.jitsi.service.version,
|
||||
org.jitsi.service.version.util,
|
||||
org.jitsi.util,
|
||||
org.jitsi.util.event,
|
||||
org.jitsi.util.swing,
|
||||
org.jitsi.util.xml
|
||||
Import-Package: apple.awt,
|
||||
ch.imvs.sdes4j,
|
||||
ch.imvs.sdes4j.srtp,
|
||||
com.sun.jna,
|
||||
com.sun.jna.ptr,
|
||||
com.sun.jna.win32,
|
||||
gnu.java.zrtp,
|
||||
gnu.java.zrtp.packets,
|
||||
gnu.java.zrtp.utils,
|
||||
gnu.java.zrtp.zidfile,
|
||||
javax.imageio,
|
||||
javax.sound.sampled,
|
||||
javax.swing,
|
||||
javax.swing.border,
|
||||
javax.swing.event,
|
||||
javax.swing.filechooser,
|
||||
javax.swing.table,
|
||||
javax.swing.text,
|
||||
javax.xml.parsers,
|
||||
javax.xml.transform,
|
||||
javax.xml.transform.dom,
|
||||
javax.xml.transform.stream,
|
||||
org.bouncycastle.asn1,
|
||||
org.bouncycastle.asn1.bsi,
|
||||
org.bouncycastle.asn1.cryptopro,
|
||||
org.bouncycastle.asn1.eac,
|
||||
org.bouncycastle.asn1.nist,
|
||||
org.bouncycastle.asn1.oiw,
|
||||
org.bouncycastle.asn1.pkcs,
|
||||
org.bouncycastle.asn1.teletrust,
|
||||
org.bouncycastle.asn1.x500,
|
||||
org.bouncycastle.asn1.x500.style,
|
||||
org.bouncycastle.asn1.x509,
|
||||
org.bouncycastle.asn1.x9,
|
||||
org.bouncycastle.crypto,
|
||||
org.bouncycastle.crypto.digests,
|
||||
org.bouncycastle.crypto.engines,
|
||||
org.bouncycastle.crypto.generators,
|
||||
org.bouncycastle.crypto.macs,
|
||||
org.bouncycastle.crypto.params,
|
||||
org.bouncycastle.crypto.prng,
|
||||
org.bouncycastle.crypto.signers,
|
||||
org.bouncycastle.crypto.tls,
|
||||
org.bouncycastle.crypto.util,
|
||||
org.bouncycastle.util,
|
||||
org.jitsi.bccontrib.digests,
|
||||
org.jitsi.bccontrib.engines,
|
||||
org.jitsi.bccontrib.macs,
|
||||
org.jitsi.bccontrib.params,
|
||||
org.jitsi.bccontrib.prng,
|
||||
org.ice4j.socket,
|
||||
org.json.simple,
|
||||
org.osgi.framework,
|
||||
org.w3c.dom,
|
||||
org.xml.sax,
|
||||
sun.lwawt,
|
||||
sun.lwawt.macosx,
|
||||
quicktime,
|
||||
quicktime.qd,
|
||||
quicktime.std.image,
|
||||
quicktime.std.sg,
|
||||
quicktime.util
|
||||
@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
|
||||
*
|
||||
* Distributable under LGPL license.
|
||||
* See terms of license at gnu.org.
|
||||
*/
|
||||
package net.java.sip.communicator.service.protocol.event;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* The <tt>CallPeerSecurityFailedEvent</tt> is triggered whenever
|
||||
* a problem has occurred during call security process.
|
||||
*
|
||||
* @author Yana Stamcheva
|
||||
* @author Werner Dittmann
|
||||
*/
|
||||
public class CallPeerSecurityMessageEvent
|
||||
extends EventObject
|
||||
{
|
||||
/**
|
||||
* Serial version UID.
|
||||
*/
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* The internationalized message associated with this event.
|
||||
*/
|
||||
private final String eventI18nMessage;
|
||||
|
||||
/**
|
||||
* The message associated with this event.
|
||||
*/
|
||||
private final String eventMessage;
|
||||
|
||||
/**
|
||||
* The severity of the security message event.
|
||||
*/
|
||||
private final int eventSeverity;
|
||||
|
||||
/**
|
||||
* Creates a <tt>CallPeerSecurityFailedEvent</tt> by specifying the
|
||||
* call peer, event type and message associated with this event.
|
||||
*
|
||||
* @param source the object on which the event initially occurred
|
||||
* @param eventMessage the message associated with this event.
|
||||
* @param i18nMessage the internationalized message associated with this
|
||||
* event that could be shown to the user.
|
||||
* @param eventSeverity severity level.
|
||||
*/
|
||||
public CallPeerSecurityMessageEvent(
|
||||
Object source,
|
||||
String eventMessage,
|
||||
String i18nMessage,
|
||||
int eventSeverity)
|
||||
{
|
||||
super(source);
|
||||
|
||||
this.eventMessage = eventMessage;
|
||||
this.eventI18nMessage = i18nMessage;
|
||||
this.eventSeverity = eventSeverity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message associated with this event.
|
||||
*
|
||||
* @return the message associated with this event.
|
||||
*/
|
||||
public String getMessage()
|
||||
{
|
||||
return eventMessage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the internationalized message associated with this event.
|
||||
*
|
||||
* @return the internationalized message associated with this event.
|
||||
*/
|
||||
public String getI18nMessage()
|
||||
{
|
||||
return eventI18nMessage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the event severity.
|
||||
*
|
||||
* @return the eventSeverity
|
||||
*/
|
||||
public int getEventSeverity()
|
||||
{
|
||||
return eventSeverity;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
|
||||
*
|
||||
* Distributable under LGPL license.
|
||||
* See terms of license at gnu.org.
|
||||
*/
|
||||
package net.java.sip.communicator.service.protocol.event;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* Parent class for SecurityOn and SecurityOff events.
|
||||
*
|
||||
* @author Yana Stamcheva
|
||||
*/
|
||||
public abstract class CallPeerSecurityStatusEvent
|
||||
extends EventObject
|
||||
{
|
||||
/**
|
||||
* Serial version UID.
|
||||
*/
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
/**
|
||||
* Constant value defining that security is enabled.
|
||||
*/
|
||||
public static final int AUDIO_SESSION = 1;
|
||||
|
||||
/**
|
||||
* Constant value defining that security is disabled.
|
||||
*/
|
||||
public static final int VIDEO_SESSION = 2;
|
||||
|
||||
/**
|
||||
* Session type of the event {@link #AUDIO_SESSION} or
|
||||
* {@link #VIDEO_SESSION}.
|
||||
*/
|
||||
private final int sessionType;
|
||||
|
||||
/**
|
||||
* Constructor required by the EventObject.
|
||||
*
|
||||
* @param source the source object for this event.
|
||||
* @param sessionType either <code>AUDIO_SESSION</code> or
|
||||
* <code>VIDEO_SESSION</code> to indicate the type of the
|
||||
* session
|
||||
*/
|
||||
public CallPeerSecurityStatusEvent(Object source, int sessionType)
|
||||
{
|
||||
super(source);
|
||||
|
||||
this.sessionType = sessionType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the type of the session, either AUDIO_SESSION or VIDEO_SESSION.
|
||||
*
|
||||
* @return the type of the session, either AUDIO_SESSION or VIDEO_SESSION.
|
||||
*/
|
||||
public int getSessionType()
|
||||
{
|
||||
return sessionType;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue