Workplace Widget 5.10.23

This commit is contained in:
chris
2026-11-08 17:45:04 +00:00
parent 180127e2ae
commit 60d35e2326
98 changed files with 4221 additions and 268 deletions

Binary file not shown.

View File

@@ -0,0 +1,27 @@
/*
* Virtual OpenJDK 11 `jaas` library for CheerpJ Workplace.
* JDK UnixSystem() calls System.loadLibrary("jaas") followed by native
* getUnixInfo(). This module supplies only that native method and delegates
* protected-field initialization to our unsigned, non-vendor Java helper.
*
* Not an authentication provider: users must still authenticate to iTAC MES.
* This handler is registered with cheerpjInit({natives}) in addition to being
* exported as a System.loadLibrary("jaas") module. Registering the method
* does not itself make JVM_LoadLibrary available in the CheerpJ runtime.
*/
export default {
async Java_com_sun_security_auth_module_UnixSystem_getUnixInfo(lib, self) {
if (!lib || !self) {
throw new Error('CheerpJ JAAS bridge: missing native context');
}
const helper = await lib.com.widgetworkbench.cheerpj.JaasIdentityBridge;
if (!helper || typeof helper.populate !== 'function') {
throw new Error('CheerpJ JAAS bridge JAR is not on the Workplace classpath');
}
console.info('[WidgetWorkbench/JAAS] UnixSystem.getUnixInfo native invoked');
const username = await helper.populate(self);
if (username !== 'cheerpj-client') {
throw new Error('CheerpJ JAAS bridge returned an unexpected identity');
}
},
};

View File

@@ -0,0 +1,10 @@
// Self-contained native-library-loader diagnostic; no MES authentication or system identity.
// Loaded EITHER by System.loadLibrary("wwprobe") from java.library.path OR
// injected directly through cheerpjInit({natives}) in the isolated direct test.
// The direct path does not repair JVM_LoadLibrary and does not affect JAAS.
export default {
async Java_com_widgetworkbench_cheerpj_NativeLoaderSmoke_ping() {
console.info('[WidgetWorkbench/NativeLoaderSmoke] wwprobe.js JNI callback reached');
return 42;
}
};