src/PowerAuth/jni/SessionJNI.cpp
//
// public native int completeActivation(SignatureUnlockKeys lockKeys);
//
public native int completeActivation(SignatureUnlockKeys lockKeys).
public native int completeActivation ( SignatureUnlockKeys lockKeys ) .
CC7_JNI_METHOD_PARAMS(jint, completeActivation, jobject lockKeys)
{
	auto session = CC7_THIS_OBJ();
	if (!session || !lockKeys) {
		CC7_ASSERT(false, "Missing param or internal handle.");
		return EC_WrongParam;
	}
	SignatureUnlockKeys cppLockKeys;
	if (false == LoadSignatureUnlockKeys(cppLockKeys, env, lockKeys)) {
		return EC_WrongParam;
	}
	ErrorCode code = session->completeActivation(cppLockKeys);
	return code;
}
CC7_JNI_METHOD_PARAMS ( jint , completeActivation , jobject lockKeys ) { auto session = CC7_THIS_OBJ ( ) ; if ( ! session || ! lockKeys ) { CC7_ASSERT ( false , " " ) ; return EC_WrongParam ; } SignatureUnlockKeys cppLockKeys ; if ( false == LoadSignatureUnlockKeys ( cppLockKeys , env , lockKeys ) ) { return EC_WrongParam ; } ErrorCode code = session -> completeActivation ( cppLockKeys ) ; return code ; }
public native int completeActivation(SignatureUnlockKeys lockKeys);
public native int completeActivation ( SignatureUnlockKeys lockKeys ) ;
// Load keys into C++ structures // Call C++ session