]> sjero.net Git - linphone/commitdiff
Jni for setAuthenticationTokenVerified function.
authorGuillaume Beraudo <guillaume.beraudo@belledonne-communications.com>
Mon, 14 Nov 2011 14:32:31 +0000 (15:32 +0100)
committerGuillaume Beraudo <guillaume.beraudo@belledonne-communications.com>
Mon, 14 Nov 2011 14:32:31 +0000 (15:32 +0100)
coreapi/linphonecore_jni.cc
java/common/org/linphone/core/LinphoneCall.java

index d7715a627f9c9c7bf82fefe7063e1adfb9d8ff79..27fa417cc3c4858284bf1321c797b777eac86ce6 100644 (file)
@@ -1584,6 +1584,11 @@ extern "C" jboolean Java_org_linphone_core_LinphoneCallImpl_isAuthenticationToke
        LinphoneCall *call = (LinphoneCall *) ptr;
        return linphone_call_get_authentication_token_verified(call);
 }
+extern "C" void Java_org_linphone_core_LinphoneCallImpl_setAuthenticationTokenVerified(JNIEnv*  env,jobject thiz,jlong ptr,jboolean verified) {
+       LinphoneCall *call = (LinphoneCall *) ptr;
+       linphone_call_set_authentication_token_verified(call, verified);
+}
+
 
 extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_soundResourcesLocked(JNIEnv* env,jobject thiz,jlong ptr){
        return linphone_core_sound_resources_locked((LinphoneCore *) ptr);
index 1c4b0e85b23073f7d3af1cd12f6b4a48e20bd0a1..3d1c9696f94a7f1f715da0092741ad1f2c1117b5 100644 (file)
@@ -220,8 +220,24 @@ public interface LinphoneCall {
         */
        float getAverageQuality();
        
-       
+       /**
+        * Used by ZRTP encryption mechanism.
+        * @return SAS associated to the main stream [voice]
+        */
        String getAuthenticationToken();
+
+       /**
+        * Used by ZRTP encryption mechanism.
+        * SAS can be verified manually by the user or automatically using a previously shared secret.
+        * @return true if the main stream [voice ]SAS was verified.
+        */
        boolean isAuthenticationTokenVerified();
+
+       /**
+        * Used by ZRTP encryption mechanism.
+        * @param verified true when displayed SAS is correct
+        */
+       void setAuthenticationTokenVerified(boolean verified);
+
        boolean isInConference();
 }