+ * API to Set callback for displaying verifNum in verified Just-Works.
+ *
+ *@param DisplayNumListener callback Listener to be registered for
+ displaying VerifyNUm.
+ *@throws OcException
+ */
+ public static native void setDisplayNumListener(
+ DisplayNumListener displayNumListener) throws OcException;
+
+ public static interface DisplayNumListener {
+ public int displayNumListener(String verifyNum);
+ }
+
+ /**
+ * API to unregister DisplayNumListener Listener
+ *
+ *@return 0 on success, 1 on failure
+ *@throws OcException
+ */
+ public static native int unsetDisplayNumListener() throws OcException;
+
+ /**
+ * API to Set callback for getting user confirmation in verified
+ * Just-Works
+ *
+ *@param ConfirmNumListener callback Listener to be registered for getting user confirmation.
+ *@throws OcException
+ */
+ public static native void setConfirmNumListener(ConfirmNumListener
+ confirmNumListener) throws OcException;
+
+ public static interface ConfirmNumListener {
+ public int confirmNumListener();
+ }
+
+ /**
+ * API to unregister ConfirmMutualVerifyNum Listener
+ *
+ *@return 0 on success, 1 on failure
+ *@throws OcException
+ */
+ public static native int unsetConfirmNumListener() throws OcException;
+
+ /**
+ * API to set options for Mutual Verified Just-works
+ * Default is for both screen PIN display and get user confirmation.
+ *
+ */
+ public static int setMVJustWorksOptions(EnumSet<MVJustWorksOptionMask> optionMask) throws OcException {
+
+ int optionMaskInt = 0;
+
+ for (MVJustWorksOptionMask ops : MVJustWorksOptionMask.values()) {
+ if (optionMask.contains(ops))
+ optionMaskInt |= ops.getValue();
+ }
+ return setMVJustWorksOptions0(optionMaskInt);
+ }
+
+ private static native int setMVJustWorksOptions0(int optionsMask) throws OcException;
+
+ /**