]> sjero.net Git - linphone/commitdiff
Improve ZRTP GUI + setAuthenticationVerified
authorGuillaume Beraudo <guillaume.beraudo@belledonne-communications.com>
Mon, 14 Nov 2011 14:37:03 +0000 (15:37 +0100)
committerGuillaume Beraudo <guillaume.beraudo@belledonne-communications.com>
Mon, 14 Nov 2011 21:22:48 +0000 (22:22 +0100)
LinphoneCallImpl.java

index 2550367cb0eb9cbafbf605e08b5b1dcae427d789..802801155be43cb6b3c41f4bca4829442d5d7dcd 100644 (file)
@@ -39,9 +39,6 @@ class LinphoneCallImpl implements LinphoneCall {
        private native int getDuration(long nativePtr);
        private native float getCurrentQuality(long nativePtr);
        private native float getAverageQuality(long nativePtr);
-       private native String getAuthenticationToken(long nativePtr);
-       private native boolean isAuthenticationTokenVerified(long nativePtr);
-       private native boolean areStreamsEncrypted(long nativePtr);
        
        /*
         * This method must always be called from JNI, nothing else.
@@ -126,13 +123,21 @@ class LinphoneCallImpl implements LinphoneCall {
                return getCurrentQuality(nativePtr);
        }
 
+       private native String getAuthenticationToken(long nativePtr);
        public String getAuthenticationToken(){
                return getAuthenticationToken(nativePtr);
        }
+
+       private native boolean isAuthenticationTokenVerified(long nativePtr);
        public boolean isAuthenticationTokenVerified(){
                return isAuthenticationTokenVerified(nativePtr);
        }
 
+       private native boolean setAuthenticationTokenVerified(long nativePtr, boolean verified);
+       public void setAuthenticationTokenVerified(boolean verified){
+               setAuthenticationTokenVerified(nativePtr, verified);
+       }
+
        public boolean isInConference() {
                LinphoneCallParamsImpl params = new LinphoneCallParamsImpl(getCurrentParamsCopy(nativePtr));
                return params.localConferenceMode();