Workplace Widget 5.10.23
This commit is contained in:
BIN
hmi-frontend/public/cheerpj/jaas-identity-bridge.jar
Normal file
BIN
hmi-frontend/public/cheerpj/jaas-identity-bridge.jar
Normal file
Binary file not shown.
BIN
hmi-frontend/public/cheerpj/jaas-native-loader-smoke.jar
Normal file
BIN
hmi-frontend/public/cheerpj/jaas-native-loader-smoke.jar
Normal file
Binary file not shown.
27
hmi-frontend/public/cheerpj/natives/jaas.js
Normal file
27
hmi-frontend/public/cheerpj/natives/jaas.js
Normal 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');
|
||||
}
|
||||
},
|
||||
};
|
||||
10
hmi-frontend/public/cheerpj/natives/wwprobe.js
Normal file
10
hmi-frontend/public/cheerpj/natives/wwprobe.js
Normal 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;
|
||||
}
|
||||
};
|
||||
BIN
hmi-frontend/public/cheerpj/workplace-credential-bridge.jar
Normal file
BIN
hmi-frontend/public/cheerpj/workplace-credential-bridge.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
hmi-frontend/public/cheerpj/workplace-window-monitor-v3.jar
Normal file
BIN
hmi-frontend/public/cheerpj/workplace-window-monitor-v3.jar
Normal file
Binary file not shown.
BIN
hmi-frontend/public/cheerpj/workplace-window-monitor-v4.jar
Normal file
BIN
hmi-frontend/public/cheerpj/workplace-window-monitor-v4.jar
Normal file
Binary file not shown.
Reference in New Issue
Block a user